Property

inputDeviceRight

The x-coordinate for the right edge of the indirect pointer input device we're interacting with in px, where (0, 0) is the top left corner of the indirect pointer input device.

Source set: Common
val IndirectPointerInjectionScope.inputDeviceRight: Float

The x-coordinate for the right edge of the indirect pointer input device we're interacting with in px, where (0, 0) is the top left corner of the indirect pointer input device. Note: This is not related to the screen coordinates.

Note that, unless inputDeviceWidth == 0, inputDeviceRight != inputDeviceWidth. In particular, inputDeviceRight == inputDeviceWidth - 1f, because pixels are 0-based. If inputDeviceWidth == 0, inputDeviceRight == 0 too.

Last updated: