0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Don't autoscroll on focus

If the rich text view is inside an overflow:scroll, every time you add a link
or do something else that requires we programatically focus the editor it would
jump the scroll back to the top; very annoying.
This commit is contained in:
Neil Jenkins 2019-09-25 20:49:56 -04:00
parent 6b85bda364
commit 3dc4f201d9
3 changed files with 3 additions and 3 deletions

View file

@ -3191,7 +3191,7 @@ proto._updatePathOnEvent = function ( event ) {
// --- Focus ---
proto.focus = function () {
this._root.focus();
this._root.focus({ preventScroll: true });
if ( isIE ) {
this.fireEvent( 'focus' );

File diff suppressed because one or more lines are too long

View file

@ -647,7 +647,7 @@ proto._updatePathOnEvent = function ( event ) {
// --- Focus ---
proto.focus = function () {
this._root.focus();
this._root.focus({ preventScroll: true });
if ( isIE ) {
this.fireEvent( 'focus' );