Propeller
Propeller copied to clipboard
Propeller on touch screen windows doesn't work
Hello I used this script on my web site but it doesn't work on touch screen on my computer. I tried to change on tablet mode, tried egde, chrome, firefox, tried to change settings on them, but no way. I thing my finger doesn't send the real code ontouchstart.
do you have an issue please?
This would be strange as library is 5 years old and there are no changes in api
it works on iphone, but no on windows on browser
I delete the condition about 'ontouchstart' and it works with the finger. but, there is no inertie when I spin and I left the screen. /* if ('ontouchstart' in document.documentElement) { */ var force_tactile=1; if (force_tactile==1) {
this.touchElement.addEventListener('touchstart', this.onRotationStart);
this.touchElement.addEventListener('touchmove', this.onRotated);
this.touchElement.addEventListener('touchend', this.onRotationStop);
this.touchElement.addEventListener('touchcancel', this.onRotationStop);
this.touchElement.addEventListener('dragstart', this.returnFalse);
} else {
this.touchElement.addEventListener('mousedown', this.onRotationStart);
this.touchElement.addEventListener('mousemove', this.onRotated);
this.touchElement.addEventListener('mouseup', this.onRotationStop);
this.touchElement.addEventListener('mouseleave', this.onRotationStop);
this.touchElement.addEventListener('dragstart', this.returnFalse);
}