Skip to content

Commit

Permalink
Merge pull request #4823 from andre-ehlert/bugfix/#3675-mobile-pan-an…
Browse files Browse the repository at this point in the history
…d-zoom

Allow pan and zoom on mobile devices
  • Loading branch information
junedchhipa authored Nov 21, 2024
2 parents 7e8275f + f60c9ec commit ef34869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ZoomPanSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default class ZoomPanSelection extends Toolbar {
? e.changedTouches[0].clientY
: e.clientY

if (e.type === 'mousedown' && e.which === 1) {
if ((e.type === 'mousedown' && e.which === 1) || e.type === 'touchstart') {
let gridRectDim = me.gridRect.getBoundingClientRect()

me.startX = me.clientX - gridRectDim.left
Expand Down

0 comments on commit ef34869

Please sign in to comment.