Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot move in mobile screen #6

Open
dieungocbao opened this issue Aug 31, 2020 · 7 comments
Open

cannot move in mobile screen #6

dieungocbao opened this issue Aug 31, 2020 · 7 comments

Comments

@dieungocbao
Copy link

dieungocbao commented Aug 31, 2020

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

@scharrua
Copy link

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

@rdbeach
Copy link
Owner

rdbeach commented Aug 31, 2020

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.

@dieungocbao
Copy link
Author

Use the hand button to move around the screen.

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

@rdbeach
Copy link
Owner

rdbeach commented Sep 1, 2020

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?

@dieungocbao
Copy link
Author

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

@itabix
Copy link

itabix commented Nov 7, 2020

Not working on Android (Pixel 3 with Android 11)

@parkermaths
Copy link

parkermaths commented Jul 29, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants