Skip to content

Commit

Permalink
set fireMouseEvent to false at start of touch handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Mar 21, 2024
1 parent 2c3af64 commit 3194ffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/service-call-tile-feature.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/classes/base-service-call-feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,17 +354,17 @@ export class BaseServiceCallFeature extends LitElement {

@eventOptions({ passive: true })
onTouchStart(e: TouchEvent) {
this.onStart(e);
this.fireMouseEvent = false;
this.onStart(e);
}
onTouchEnd(e: TouchEvent) {
this.onEnd(e);
this.fireMouseEvent = false;
this.onEnd(e);
}
@eventOptions({ passive: true })
onTouchMove(e: TouchEvent) {
this.onMove(e);
this.fireMouseEvent = false;
this.onMove(e);
}

onContextMenu(e: PointerEvent) {
Expand Down

0 comments on commit 3194ffb

Please sign in to comment.