Dominical1 / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Touch pinch event also triggers rotation #72

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Pinch using jsc3d touch

What is the expected output? What do you see instead?
Pinch should just zoom, not also trigger rotate event

What version of the product are you using? On what operating system?
Cordova + jsc3d + jsc3d touch + HTC One (Android)

Original issue reported on code.google.com by ethernal...@gmail.com on 20 Apr 2014 at 10:23

GoogleCodeExporter commented 8 years ago
Thanks. But I cound not reproduce it in my own test: safari + ipad or opera + 
emulator.

Original comment by Humu2...@gmail.com on 21 Apr 2014 at 12:06

GoogleCodeExporter commented 8 years ago
Touch support in Jsc3d is built upon hammer.js's touch event mechanism. 
Pinching uses 'pinch' event while rotation is based on 'drag' event. Basically 
both should not be triggered at the same time. However, there may still be 
compatibility issues in hammer.js on different platforms, some of which are 
reported here: https://github.com/EightMedia/hammer.js/wiki/Compatibility. 
Could you help me to check it referring to that table?

Original comment by Humu2...@gmail.com on 24 Apr 2014 at 6:36

GoogleCodeExporter commented 8 years ago
I can reproduce on Iphone 5s on Safari as well as Ipad 3 with Safari, the 
rotation event happens about 80% of the time when lifting fingers after a zoom 
in gesture.

Original comment by adamlars...@gmail.com on 6 Aug 2014 at 9:37

GoogleCodeExporter commented 8 years ago
Thanks, Adam! I guess the unexpected rotation is trigered when one finger has 
leaved the touch device while the other still stays on it sliding. This has 
been fixed in r275 http://code.google.com/p/jsc3d/source/detail?r=257. The 
latest editon in the svn repository works without this issue.

Original comment by Humu2...@gmail.com on 10 Aug 2014 at 5:34