onMouseEvent

open fun onMouseEvent(browser: CefBrowser, event: Int, screenX: Int, screenY: Int, modifier: Int, button: Int)

Implement this method to handle mouse events on Windows. The method is called in case of the following events: MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED and MOUSE_WHEEL for a horizontal wheel movement.

Parameters

browser

The browser generating the event.

event

A mouse event like MouseEvent.MOUSE_MOVED.

screenX

The absolute X position on the screen.

screenY

The absolute Y position on the screen.

modifier

The modifier keys down during event (e.g. Shift, Ctrl).

button

An integer indicating which mouse button state changed. If parameter event is set to MouseEvent.MOUSE_WHEEL, the value of this parameter specifies the rotation indicator (negative value for left scroll and positive value for right scroll).