wb icon indicating copy to clipboard operation
wb copied to clipboard

cannot move in mobile screen

Open dieungocbao opened this issue 4 years ago • 7 comments

Hello @rdbeach , Whiteboard can draw but cannot move the workspace to another position on mobile. image

dieungocbao avatar Aug 31 '20 02:08 dieungocbao

Hi! what about using 2 fingers to scroll/move the workspace?

scharrua avatar Aug 31 '20 16:08 scharrua

Use the hand button to move around the screen.

Using two fingers is a good idea. I’ll look into it and see what I can do.

rdbeach avatar Aug 31 '20 21:08 rdbeach

Use the hand button to move around the screen.

When using the hand button, I can't move the toolbar or the workspace.

dieungocbao avatar Sep 01 '20 03:09 dieungocbao

Which mobile device are you using? Also which browser? Are you saying that the hand button does not allow you to scroll around the screen?

rdbeach avatar Sep 01 '20 05:09 rdbeach

Which mobile device are you using? Also which browser? Are you saying that the hand button does not allow you to scroll around the screen?

Yes, I can't move when using hand button. I found out that it's working perfectly on physical device (I've test on iPhone with Safari & Chrome) but not working on Android emulator.

Name: Pixel_2_API_28 Target: Android 9.0

dieungocbao avatar Sep 01 '20 09:09 dieungocbao

Not working on Android (Pixel 3 with Android 11)

itabix avatar Nov 07 '20 17:11 itabix

This still appears to be a problem on the current version. It is not just Android, but appears to be other touch enabled devices as well. It did not work on my Surface Pro, Galaxy Tab or Galaxy S9. It also didn't work in the chrome mobile device preview.

The issue appears to be caused by the lines of code below, which are in board.html, just after the body tag:

		document.addEventListener('touchmove', function (event) {
  			if (event.scale !== 1) { event.preventDefault(); }
		}, {passive: false} );

Removing this line of code appears to resolve the issue for me on all devices. However, I am not sure of the actual purpose of this script, other than it is related to touch events, so I don't know if removing this like will break something else. I haven't found anything that it has broken yet though.

Hope this helps.

parkermaths avatar Jul 29 '21 23:07 parkermaths