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

WordPress Trac noreply at wordpress.org
Fri Aug 19 21:37:06 UTC 2016


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

Comment (by azaozz):

 Replying to [comment:8 Akeif]:

 Great. Thanks for testing.

 I tested with a larger posts too. Unfortunately it is still very slow with
 posts that have more than 5,000 words. At that point the textarea is
 starting to get slower anyways, but holding down Backspace makes the
 browser "freeze" for few seconds.

 In 37690.1.patch attempting to speed this up by using Underscore's
 `throttle()`. Seems to make it quite faster but has a small trade-off:
 when deleting empty rows by holding the Backspace button, it doesn't
 shrink the textarea height fast enough.

 Alternatively we can turn off the shrinking of the textarea, only resize
 when switching Visual => Text editor. It looks a bit odd when you delete
 most of the post, but that is quite rare.

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


More information about the wp-trac mailing list