Ticket #19 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

Event.count for MouseWheel is incorrect

Reported by: baxissimo Assigned to: keinfarbton
Priority: major Milestone: dwt-win-3.3-01
Component: dwt-win Version:
Keywords: Cc:

Description

The fix for #17 broke the Event.count for mouse wheel events. In internal.win32.OS.d the code needs to be changed like so:

public static int GET_WHEEL_DELTA_WPARAM(int /*long*/ wParam){
    //return  HIWORD(wParam); // no good any more
    return  wParam >> 16;  // this works
}

Change History

06/03/08 17:26:05 changed by keinfarbton

  • status changed from new to closed.
  • resolution set to fixed.

Thanks Bill.

Google Codesearch gave me for the original macro this implementation:

#define GET_WHEEL_DELTA_WPARAM(wParam)  ((short)HIWORD(wParam))

So i added the cast instead. See rev 51a84342d244.