if we add damping to a Window and click twice on its content (not on the background), the Window freezes. it doesn't respond to mouse wheel anymore
this doesn't happen if there is no damping
is there a workaround to having a Window with damping and interactive content?
We will check on it - maybe it is a bug.
it seems OK because it doesn't have damping
add damping, click twice and the Window is dead
Interesting - yes. It will not scroll after two mousedowns - until it is dragged, then scrolls again. Okay - that is a bug. Will see if we can fix it now.
It is not even a dblclick but even a click, scroll, click will break it.
It is probably the slide functionality. Yes... if we turn slide:false then it does not break. Looking into it - that is pretty complicated code.
Ah... in drag() we only dispatch a slidestop event if the object moves. The Window is capturing that slidestop event and allowing the scroll to work again once it finishes sliding... well... if the object does not move then the allow flag is not turned back on. I think the drag() should dispatch a slidestop even if the object is not moved if the mouse is up. So thinking about it and testing.
Okay - we have adjusted ZIM drag() to dispatch a "slidestop" even if the object did not move. I can't imagine how that would aversely affect any existing code... so have patched it in to ZIM 017.
Thanks!
it works fine now
thank you!