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:
parent
6b85bda364
commit
3dc4f201d9
3 changed files with 3 additions and 3 deletions
|
@ -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
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue