Opened 10 years ago
Closed 10 years ago
#30670 closed defect (bug) (fixed)
Image toolbar should only show after repositioning
Reported by: | iseulde | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | TinyMCE | Keywords: | has-patch commit fixed-major |
Focuses: | javascript | Cc: |
Description
There's a 100ms delay between repositioning the image toolbar and showing it (or more depending how fast the browser repositions it). That's annoying because you can see the image toolbar pop up on one part of the page and then suddenly move to another. It should first reposition and then show. I'm not sure why there's a 100ms delay there?
Change History (9)
This ticket was mentioned in Slack in #core by janneke. View the logs.
10 years ago
#3
@
10 years ago
Thanks for linking that. :) But I don't fully understand why it's needed, as the image position doesn't change. I'm referring to the second timeout. I remember I put the timeout for the nodechange
event there, but not for show
. We should really make a habit of adding a comment to timeouts. :)
#4
@
10 years ago
The delay on show was meant to remove/reduce the "sliding" effect when the toolbar is visible, nodeChange
was fired several times, and the first time was with incorrect position at the top/left (and similar edge cases). Not needed any more as there's no positioning animation.
The reason for the delay: ticket:30664:4.