"Click at the loc of...." thingie
Posted: Sat Oct 19, 2019 8:15 pm
I thought this merited its own thread. This is derived from the discussion at:
viewtopic.php?f=7&t=33215
-----------
Is a feature, a bug, expected behavior or just an anomaly?
The command "click at the loc of..." does indeed click at that loc. As read, though, it seems that the cursor ought to simply stay at the loc after the click. This is not the same as moving the cursor to that loc and manually clicking. If one does that, of course, the cursor remains in that location.
Doing this under script control has to actually "move" the cursor to the prescribed loc, and not just invoke some similarly functional internal engine action. We know this because a "mouseLeave" handler in the target control will fire if asked to. But in order for that to happen, the cursor had to be actually on site, and had to actually leave that site. That is what "mouseLeave requires, and how "mouseLeave" works.
In other words, "click at the loc of..." actually physically moves the cursor wherever, clicks there, and then actually returns it to its original loc.
So, feature, bug...?
Craig
viewtopic.php?f=7&t=33215
-----------
Is a feature, a bug, expected behavior or just an anomaly?
The command "click at the loc of..." does indeed click at that loc. As read, though, it seems that the cursor ought to simply stay at the loc after the click. This is not the same as moving the cursor to that loc and manually clicking. If one does that, of course, the cursor remains in that location.
Doing this under script control has to actually "move" the cursor to the prescribed loc, and not just invoke some similarly functional internal engine action. We know this because a "mouseLeave" handler in the target control will fire if asked to. But in order for that to happen, the cursor had to be actually on site, and had to actually leave that site. That is what "mouseLeave requires, and how "mouseLeave" works.
In other words, "click at the loc of..." actually physically moves the cursor wherever, clicks there, and then actually returns it to its original loc.
So, feature, bug...?
Craig