On Fri, 03 Sep 2010 12:54:23 +0200, m0n0 wrote:

> I'm currently implementing mouse events and I'm a bit confused by the 
> amounts of dragging states... :
> 
> BROWSER_MOUSE_DRAG_1
> BROWSER_MOUSE_DRAG_ON
> BROWSER_MOUSE_HOLDING_1
> 
> Esepecially I can't see the difference between BROWSER_MOUSE_DRAG_ON 
> and BROWSER_MOUSE_HOLDING_1 ...

You need to keep both of them set throughout the drag.  Note there is
a MOUSE_HOLDING_2 as well for the second button.

MOUSE_DRAG_1 only needs to be set once at the start of the drag
operation.

> How do I report that an dragging operation has ended, does Netsurf 
> recognize this automatically if none of the dragging flags are set?

Call browser_window_mouse_drag_end()

Chris


Reply via email to