Skip to content

Commit

Permalink
Only apply scroll hack on Chrome version 102, not newer ones
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Jun 27, 2022
1 parent 5adf594 commit 571171d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display/scroll_events.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function onScrollWheel(cm, e) {
// On Chrome 102, viewport updates somehow stop wheel-based
// scrolling. Turning off pointer events during the scroll seems
// to avoid the issue.
if (chrome && chrome_version >= 102) {
if (chrome && chrome_version == 102) {
if (cm.display.chromeScrollHack == null) cm.display.sizer.style.pointerEvents = "none"
else clearTimeout(cm.display.chromeScrollHack)
cm.display.chromeScrollHack = setTimeout(() => {
Expand Down

0 comments on commit 571171d

Please sign in to comment.