DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2323
Version: 1.3-current


I think the problem with the mouse wheel is Fl_cocoa.mm's
cocoaMouseWheelHandler() function assumes mousewheel clicks
in increments of 1:

---
  if ([theEvent deltaX] != 0) {
    Fl::e_dx = (int)-[theEvent deltaX];
    Fl::e_dy = 0;
    if ( Fl::e_dx) Fl::handle( FL_MOUSEWHEEL, window );
  } else if ([theEvent deltaY] != 0) {
    Fl::e_dx = 0;
    Fl::e_dy = (int)-[theEvent deltaY];
    if ( Fl::e_dy) Fl::handle( FL_MOUSEWHEEL, window );
---

On my system, the mousewheel actually increments +/-0.1.

I hesitate to offer that the deltas should be multiplied by 10.0 before
being integerized, but I wouldn't do that without Apple docs that document
this.

FWIW, apparently 5 months ago QT had the same problem as well (note
ScrollFactor in the following):
http://qt.gitorious.org/~taipan/qt/android-lighthouse/commit/43a7d3ff9c66f3ebb7cac702805b7076f9b5f7b2


Link: http://www.fltk.org/str.php?L2323
Version: 1.3-current

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

Reply via email to