1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-17 06:27:11 +02:00
Commit Graph

9 Commits

Author SHA1 Message Date
Werner Almesberger
fe5bc4a55a eeshow/gui/input.c (hover_update): handle a few more rare cases 2016-08-18 18:29:23 -03:00
Werner Almesberger
4b3f2a86a9 eeshow/gui/input.c (button_release_event): input_hovering_down -> input_idle 2016-08-18 17:19:37 -03:00
Werner Almesberger
b4384a72f4 eeshow/gui/input.c (clicked_x, _y): avoid accumulation of conversion errors
Gtk uses floating-point coordinates. The double conversion during dragging
(event -> clicked -> difference with next event) caused dragging to "slow
down" in the X- and Y- direction.
2016-08-18 13:36:06 -03:00
Werner Almesberger
baed3f8a69 eeshow/gui/input.c (input_update): update hovering after coordinate changes
E.g., when zooming in or out.
2016-08-18 13:12:09 -03:00
Werner Almesberger
4ffdeeb910 eeshow/gui/input.c: support hover -> drag; set state to idle after cleanup 2016-08-18 04:56:39 -03:00
Werner Almesberger
f2c8693a77 eeshow/gui/input.c (motion_notify_event): misinterpreted hover_update result
This almost worked, except that it sometimes left hovering on after leaving
an AoI, which then caused a subsequent drag to be handled as hover_click.
This caused the history list sometimes to be closed when trying to drag.
2016-08-18 04:36:14 -03:00
Werner Almesberger
fd18690498 eeshow/gui/input.c: add tracing (-v -v -v); rename input_normal to input_idle 2016-08-18 04:34:51 -03:00
Werner Almesberger
fc1fbece43 eeshow/gui/: bring back scrolling of the history
Now it's more usable than before, since clicking between commits won't
close the history.
2016-08-18 02:05:43 -03:00
Werner Almesberger
547e7059ae eeshow/gui/gui.c: begin moving input (mouse, keyboard) handling to input.c (WIP)
We had input state scattered all over the place. This cleans things up.
We also merge the functions of left and (previously) middle button.

This breaks history panning.
2016-08-18 01:49:20 -03:00