Skip to content

Commit 3b394a4

Browse files
committed
v8.5.4
1 parent 92890ca commit 3b394a4

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/8.5.4/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GleapMarkerManager.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ export default class GleapMarkerManager {
121121
}
122122

123123
mouseMoveEventHandler(e) {
124-
const x = e.pageX - document.documentElement.scrollLeft;
125-
const y = e.pageY - document.documentElement.scrollTop;
124+
const x = e.clientX;
125+
const y = e.clientY;
126126
this.setMouseMove(x, y);
127127
}
128128

129129
touchMoveEventHandler(e) {
130-
const x = e.touches[0].pageX - document.documentElement.scrollLeft;
131-
const y = e.touches[0].pageY - document.documentElement.scrollTop;
130+
const x = e.touches[0].clientX;
131+
const y = e.touches[0].clientY;
132132
this.setMouseMove(x, y);
133133
}
134134

0 commit comments

Comments
 (0)