We are using fltk with a touch-screen.
In file src/Fl_x.cxx, function "static void set_event_xy()"
check if the last push in near the first push:
  if (abs(Fl::e_x_root-px)+abs(Fl::e_y_root-py) > 3 ||
      fl_event_time >= ptime+1000)
    Fl::e_is_click = 0;
the costant "3" is not enough for a touch screen.

My question is:
is right to extend Fl class to have a Fl::e_click_range = 3 by default
and changing the code like:
  if (abs(Fl::e_x_root-px)+abs(Fl::e_y_root-py) > Fl::e_click_range ||
      fl_event_time >= ptime+1000)
    Fl::e_is_click = 0;

Thanks in advance


_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to