MacOS firing OnMouseWheelDn Twice lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- Josh · 2018-12-07 14:38 Hi I have various controls that support the mouse wheel, but on MacOS Carbon, the event is fired twice. unfortunately I do not have a working cocoa to test if it also in there tooo. Place a control that supports onmousewheeldown, set the event to showmessage('hi'); then run and move the scroll wheel, it fires twice. Can anyone cofirm? Laz 2.1.0, FPC 3.2  i386-darwin-carbon ---------------------------------------------------------------------- Josh · 2018-12-08 10:19 I added the the following code to the wheelevents of the controls to ignore a rapid second fire Code: [Select] // notes  mac_stop_double_fire is a cardinal global varible //            mac_stop_double_fire_limit  is a const i set at 12      {$ifdef darwin}   if datetimetotimestamp(now).time- mac_stop_double_fire