Propeller icon indicating copy to clipboard operation
Propeller copied to clipboard

Propeller on touch screen windows doesn't work

Open pixxaro-festilight opened this issue 3 years ago • 3 comments

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?

pixxaro-festilight avatar Oct 03 '22 12:10 pixxaro-festilight

This would be strange as library is 5 years old and there are no changes in api

PixelsCommander avatar Oct 03 '22 12:10 PixelsCommander

it works on iphone, but no on windows on browser

pixxaro-festilight avatar Oct 03 '22 16:10 pixxaro-festilight

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);
    }

pixxaro-festilight avatar Oct 04 '22 10:10 pixxaro-festilight