Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jayohms committed Feb 24, 2024
1 parent be2be38 commit 8a53cb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions turbo/src/main/assets/js/turbo_bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@

var element = event.target

while(element) {
const isScrollable = element.scrollHeight > element.clientHeight
while (element) {
const canScroll = element.scrollHeight > element.clientHeight
const overflowY = window.getComputedStyle(element).overflowY

if (isScrollable && (overflowY === "scroll" || overflowY === "auto")) {
if (canScroll && (overflowY === "scroll" || overflowY === "auto")) {
TurboSession.elementTouchStarted(true)
break
}
Expand Down

0 comments on commit 8a53cb7

Please sign in to comment.