The mouse events are not correctly reported to an event handler function.
@mottelet)
Reported by Stéphane MOTTELET (-- Bug description --
The mouse events are not correctly reported to and event handler function.
1-The event 0,1 and 2 are reported, but the corresponding release events (-5,-4,-3) are never reported.
2-The double click events are wrongly reported when the left and right button are clicked successively. When you click successively right,left then the left double click event is reported, and when you click successively left,right then the right double click event is reported.
3-When you press (and keep pressed) the left button and then start to move the mouse then two 0 events are raised, one after the button press and one as you start to move the pointer
Problems 1 is very problematic, since you cannot detect e.g. drag and drop movements.
Problem 2 is probably due to a too long timeout, e.g. when two clicks are distant of one second, then a double click is detected. One second is too much !
Problem 3 ?
Same behaviour under XP.
-- Scilab error message --
-- How to reproduce the bug --
function print_events(win,x,y,ibut)
if ibut~=-1
disp(ibut);
end
endfunction
h=gcf();
h.event_handler='print_events';
h.event_handler_enable='on';