Skip to content

Commit

Permalink
Include clientX & clientY in HTMLManager.extractPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Feb 21, 2024
1 parent 55642ff commit 2737077
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srcjs/stendhal/ui/HTMLManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export class HTMLManager {
pos = {
pageX: Math.round(event.changedTouches[0].pageX),
pageY: Math.round(event.changedTouches[0].pageY),
clientX: Math.round(event.changedTouches[0].clientX),
clientY: Math.round(event.changedTouches[0].clientY),
target: canvas
}
if (["touchmove", "touchend"].indexOf(event.type) > -1) {
Expand Down

0 comments on commit 2737077

Please sign in to comment.