Layer.releaseCapture

Function/Meaning

Cancel mouse event capture

Type
Layerclassmethod of
Syntax
releaseCapture()
Arguments
Return value
None (void)
Explanation

Cancels mouse event capture.
Mouse event capture is a function that exclusively sends mouse events to the layer where the mouse button was first pressed until the mouse button is released.
This method removes this feature and returns you to normal mouse event processing.
When you execute this method, mouse capture of layers belonging to the same window is canceled even if the layer that executes the method and the layer that is being captured are different.
This method does nothing if it is not in the capture state.