Bloc
Bloc copied to clipboard
Click event instead of drag-like event
Hi @tinchodias,
I detect a problem, for me. But we need to discuss and get a solution.
I'm using a BlEventListener subclass to write behavior on a click. Here my example:
BlEventListener << #MyEventListener
>>clickEvent: anEvent
So, I want to do something on mouse click. The problem is that I receive a click after than my mouse is moving!
To reproduce:
- place a breakpoint in the beginning of
clickEvent:
- press the mouse button (left button for a Windows/Linux mouse)
- move the mouse inside the blspace, in example a distance of 300px
- release the mouse button : breakpoint open
I think this is not normal to get a click if the mouse distance between the press and the release is more than, in example, 5px (to absorb body precision - vibration etc.). Because if the distance is large this is more similar to a drag event.
My concrete problem is: I want to select an object by click. Imagine a cartographic view with object as cities on it. I click on a city to select it without move the mouse : ok. But when I press the mouse button on the city position, and after I move inside another city and I release the button, I got a click and the city far my cursor is selected!