Skip to content

Commit

Permalink
Scroller: make keepHover enabled by default
Browse files Browse the repository at this point in the history
This is for #175
  • Loading branch information
gdh1995 committed May 23, 2020
1 parent 949380c commit 899bd4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let currentScrolling: WeakRef<SafeElement> | null = null
/** @NEED_SAFE_ELEMENTS */
let cachedScrollable: WeakRef<SafeElement> | 0 | null = 0
let keyIsDown = 0
let preventPointEvents: BOOL | boolean = 1
let preventPointEvents: BOOL | boolean | undefined
let scale = 1
let joined: VApiTy | null = null
let scrolled = 0
Expand Down Expand Up @@ -259,9 +259,9 @@ export const executeScroll = function (di: ScrollByY, amount0: number, isTo: BOO
resetSelectionToDocStart()
}
}
preventPointEvents = !(options && options.keepHover)
preventPointEvents = options && options.keepHover === !1
vApi.$(element, di, amount)
preventPointEvents = 1
preventPointEvents = 0
scrolled = 0
scrollingTop = null
if (amount && readyState_ > "i" && overrideScrollRestoration) {
Expand Down

0 comments on commit 899bd4a

Please sign in to comment.