Several Mouse event functions broken
-
If I remember correctly, this used to work so that when inside
event.drag, it only responded to actual "dragging", not clicking, am I right?If that's so, there is a bug!
if (event.clicked || event.drag) { if (event.clicked) Console.print("clicked"); if (event.drag) // THIS USED BE ACTIVATED ONLY IF DRAGGED { Console.print("only dragging"); } }
HiseSnippet 873.3ocsUstaaaCElzIrcxaccEXO.D8WN.ct1a8x.JFVb7kTik3XT4Fr9qBFJZahPQJPQkLi171tGf8Frdnjbj7lWVmAlfggNW9H+zgemCmZMbQZpwhvAyVkHP3uhDtR6V1eISpQiGfveM4TVpSXoEtNZUBKMUDgv38N16.GrOJ+4O94iXJllKpbgPmajbwIxXoqx6zC+EoRMhEIlIiqk8yNbL2n6aTlLfO6Q5fRX7KYKDSX9zZPP36MLR5L1PGyIRQ38OxDsJbo4ZcQ9mKSkWnDditnPXgJbOxnh7L16E0eoTEMc82cJBVkoUUg8JpBeK4TYj7V+UUiuIO.sBQ85AtwlzauMnW2+I5sEJgqQIRAkdDIjakItpHd97kjwZ3vYNCJ60oxjr3PkLRXmBkPfJDruHWrBnF+Nlz2.3zt1wrKEirfwsqSqWzoySnveG7plMgCjTG8JlkNs2jgmP+I5ZfKDt9l3DiFLZ837nO1iH+s1oB2olrTQelRcAPgVyyzbmznaItB.bPyOzLPNmVX0lqj7KEQzO9QZgiHKawAMCfj96YA9CB.VjZTh1IVoe6KC4IPPvFfxWI5SeJc1qGGRea3vAziFR60e13y6MCLNaxIuiNdDcva5c7wCG.X+vVVeiVsh5WpER8hhc4llvuaN3Uq+vnF8DiSbltU9GWyaZR+qglOeqw7UTqQoD1sF12jXuKfszYwWHrOANlTYhaSDD1aJGu2mmbjWb.WKQidrV5NKQTZe28SnREB71aGOf4Xd8boOHuDg0I8zAOPbELbnPcGPFHRuzYRxysTVgv22kG8Aq09LsPgjvVeeRtNC8aUiOd2gqpLjGdsLxsrtikB4hkt5d.so450JTfQOjzSonUNP05B2ufmP+uIJSwbaNTvOIrL.bzrQmnuuRmJcqpOo7+vjhN24jhOWJ9HxToiub6brwV3Hbn8+AGKmu9.xv4yEbWEA2mL5W20go+Ka+aLYNns8TlyJA8BwOaDthgKfcWCBp7wiM7B2B6NdaeEHTnixM9S3oLXWuMtLX20AQwLt07ddQCoeB9Wj6A3jN+xq.3VTvl1Ek2jB3HcZ2AECWl7dN2+4+cPuz1w786.leXGv7rc.yy2ALuXGv7xc.yOdmX72i2KyYhKZG.GSGlOsBiGpYfxJWEh9DfQgVGu
-
@ulrik Confirmed, tested on both an older version (which works) and new (which does not)
-
Found more issues with the MouseCallback events
This is an event.hover logHiseSnippet 793.3ocsUssaSCDDccRbENPApDe.V8oToRTRoTPBgHs4BJhlzHRoBIdnZq853Uc8tVqWmRDpR7IyePYVeINABgRjvR4xblK93YNy5QRgCIJRHQFVmOKjfLdj43YbkeaeLki52AY7XyA3HEQZmBcxrPbTDwEYXT98Z.CqJnjqe7tSvLL2gT.gPWHnNjSoATUA5nVefxX8vtjyoAKD8gs56H3sELQLvmxlMPgXmqwSHCw5vJYhL1pqKUIjiUXEIBYT4Dg6rw9ha3oweAMhdEinMZhFCEJEtmf4pYrFE01mxbGk+bGgfpLpnKTNsK7LyATW5b7htwSSbXWjwh8CiRKSuxKQul+I5sBJYr.kpjRocLG6HogpBOZ97Py9bX33gg19hTIMVToSMLaKfH3p5A3qI8jfw7LpcTiF6aCes2apVEZ8QJ6oXo8ngmZ+V67zlPTsEAgBNXTaWv2t5ngeqGQTCDwQj1XF6JXRUyKl6nnBdMxTH38p9spVTO6Tq59hoD4dUsrfBGIXj5gRJTQkTSjzDfBeK7IuL1B9PghbFuVRopdaU6e0km2J8o4tTvXD4Jcqkcx0kXMdbvUD49P6fESlGHLKVd.u08a.6j1JWHPAuOmpNKjjYudEJJaV.+6S86fUXsBICChKjHUTMcL5PlBqao5EKyNjnqUhvjXyFf.rJw614pILmvPT3VaZByTzWmuN9cuVyJL9RqantJeHLCWv1mPm3qxsf4u3lbU.vimXdLiYW.PUjf70ZqsPn6tSWyBzCVDF86ReXoS3Fyvpk2D0G+j4.ldKI+0RbdDUMawim9GVOar10y6KE2wbDU43uZNVZEbDlq+O3X1gZaa10yi3nJHXEydedSOA6ub6+nHVQ4SFfURJHpLGFGLFF0ND3tyAMWjV7TRqsSsans0cfwDtahwcvUlylZaiLmMychBvNRwkNo6r5iMePBBvIdxaLrfWcA11MQI6wZMdi5MPAvI3W53ne7eNrts5bNXCx4EaPNGtA47xMHmi1fbd0FjyqWaN5WddbrRDjtN..i5lbflgQWNFTVIpPzOAZoWT7C
-
@ulrik The problem with the drag flag is that before it was only true when the user moved the mouse a few pixels so the condition
if(event.clicked || event.drag) { // do something }
went back to false for a short time which created all kinds of hiccups when implementing dragging operations. That solved a lot of issues for my use cases but if it broke something on your end we can try to find a workaround for it.
The
mouseDownX
properties being populated shouldn't be too critical, but yeah I can clear those if the mouse isn't pressed. -
@Christoph-Hart I see, well I can change the event.drag to event.dragX || event .dragY, I don't have so many many projects to change.
So the event.dragX & Y doesn't go back to false after a short time?