-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flickering on Chrome desktop, and when there is .markedContent
This commit removes the existing anti-flickering implementation for Chrome desktop, and replaces it with the same one used for mobile. This prevents much more flickering also on desktop. This commit also ensures that also nested `<span>` elements inside .textLayer get a `z-index: 1`, while leaving .markedContent elements at `z-index: 0` (and the `<span>`s they contain will have `z-index: 1`). In Chrome, .endOfContent can now be moved right after the selected `<span>` even if it's inside a .markedContent element, removing flickering over the .markedContent section.
- Loading branch information
1 parent
67da5fd
commit 0ada3c1
Showing
2 changed files
with
36 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters