fader: fix touch state regression

This commit is contained in:
jean-emmanuel 2025-03-19 09:27:50 +01:00
parent 315f1de6c9
commit 8a5790f2f5

View file

@ -6,6 +6,10 @@ module.exports = (self, options)=>{
self.setValueTouchedQueue = undefined
self.on('draginit',(e)=>{
if (self.shouldDrag && !self.shouldDrag(e)) {
e.cancelDragEvent = true
return
}
self.touched += 1
if (self.touched == 1) {
self.trigger('touch', {stopPropagation: true, touch: 1})