[wp-trac] [WordPress Trac] #37690: Backspace causes jumping

WordPress Trac noreply at wordpress.org
Thu Aug 25 01:08:02 UTC 2016


#37690: Backspace causes jumping
-------------------------------------+-----------------------
 Reporter:  ModernNovel              |       Owner:  azaozz
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.6.1
Component:  Editor                   |     Version:  4.6
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------

Comment (by azaozz):

 In 37690.2.patch: do not use cloned element, "lock" the scrolling while
 resetting the textarea height instead. This seems fastest and most
 compatible.

 Using debounce() instead of throttle() makes it worse when the user
 presses backspace or delete only once. We need to run shrinkTextarea() at
 the beginning and at the end of the delay, debounce() can do either
 beginning or end but not both.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37690#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list