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

Horizontal scroll stops working after screenshot capture with 3 finger down swipe or Palm swipe on Android devices in Ionic 3 app. #615

Open
ravi-pandit14 opened this issue Jan 28, 2019 · 4 comments

Comments

@ravi-pandit14
Copy link

ravi-pandit14 commented Jan 28, 2019

We are facing an issue with “Phaser-ce” component integrated in Ionic 3 app on Android devices. When trying to capture a screenshot with 3 finger down swipe or Palm swipe, the horizontal scroll on page stops working. This is very likely an issue with multitouch. It is difficult to debug it as there are no errors in log.

Some additional details about setup:
We are using Ionic 3 and have also tested on starter Ionic app to make sure this is not something related to compatibility with other plugins or dependencies.
We have checked relevant fixes in "phaser-ce" for this similar issue reported in other cases but none of them have worked. E.g
#541 (comment),
#541 (comment)

We have also checked relevant fixes in "phaser-kinetic-scrolling-plugin" ( this the additional library we are using in app for horizontal scrolling) as this similar issue is reported in other cases but none of the fixes given here have worked either. E.g
https://github.com/jdnichollsc/Phaser-Kinetic-Scrolling-Plugin/issues/5
https://github.com/jdnichollsc/Phaser-Kinetic-Scrolling-Plugin/pull/12

Link of repository : https://github.com/ravi-pandit14/phaser-test-master
The issue can be replicated using this repository.
When trying to capture a screenshot with 3 finger down swipe or Palm swipe (on Android device), the horizontal scroll on dashboard page stops working.

Using package.json dependencies:

"ionic": "3.20.0",
"ionic-angular": "3.9.2",
"cordova-android": "7.1.4",
"phaser-ce": "^2.11.1",
"phaser-kinetic-scrolling-plugin": "^1.2.1",
 [email protected]
 node 10.13.0
@samme
Copy link
Collaborator

samme commented Jan 28, 2019

the horizontal scroll on page stops working

Can you explain this part — what touch gesture, and where, should scroll the page but doesn't?

@ravi-pandit14
Copy link
Author

Link of repository : https://github.com/ravi-pandit14/phaser-test-master
The issue can be replicated using this repository.
When trying to capture a screenshot with 3 finger down swipe or Palm swipe (on Android device), the horizontal scroll on dashboard page stops working.

@samme
Copy link
Collaborator

samme commented Jan 31, 2019

If you can access the Chrome Console (Dev Tools), run something like

console.monitorEvents(document, 'control');
console.monitorEvents(document, 'touch');

and do the screenshot gesture and note the console output.

Also, not sure if it's relevant, but you can debug Phaser's inputs to see what state they're in.

@vipin1code
Copy link

@samme Have you managed to replicate this issue on your end using the sample repo we created to demo this issue?

To make it easier, we have also uploaded an .apk file.

We realised that instead of using 3 finger swipe for screenshot, it can also be replicated with simple 3 finger touch (not drag).

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

No branches or pull requests

3 participants