Nick Gammon said: Well you wanted a mouse-move generated when you created a hotspot so I supposed you might expect that.
I don't want a mouse-move generated when a hotspot is created. I don't actually think that generating a mouse-move is correct or appropriate, because the mouse may not in fact be moving. It is the hotspot that is moving rather than the mouse, which is why I think that /only/ onmouseover should be called (if appropriate).
Quote: Would it help if there was an extra test? That the extra code is only executed if the mouse is (thought to be) over the newly created hotspot (rather than unconditionally)? I don't know, maybe, but see above.
Quote: I think it is a bit of a design flaw, to make it so that if the mouse moves, you create a hotspot, the hotspot being one that detects mouse moves and recreates itself. My understanding of the current problem is that this is not actually what is happening. In fact, I don't think that that's even possible, since hotspot creation tends to delete callbacks. It looks like the mouse-move event is happening even if an entirely different miniwindow creates hotspots.
Quote: One problem is the issue of "which mouse position?". All I know is that with 4.75 all of my resizing works great. And in 4.76 if any miniwindow other than the one I'm trying to resize updates its hotspots because of a trigger firing the resizing gets screwed up. |