Skip to content

Commit 52464f9

Browse files
author
illarionov-company
committed
add rounding to DriverBorder.top
1 parent ee5bc06 commit 52464f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-lib/engine/Driver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class DriverBorder {
208208

209209
/** Recalculates top offset */
210210
updateLimits() {
211-
this.top = this.domElement.getBoundingClientRect().top + Globals.scroll
211+
this.top = ~~this.domElement.getBoundingClientRect().top + Globals.scroll
212212

213213
if (this.edge === "bottom") this.top -= Globals.screenHeight
214214
}

0 commit comments

Comments
 (0)