1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-05 18:34:03 +02:00

Fix the mouse button issue

This commit is contained in:
Alex Plate 2024-07-19 20:25:45 +03:00
parent be43f74bc6
commit 90474a3a4f
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -18,14 +18,14 @@ import java.awt.Point
fun RemoteText.doubleClickOnRight(shiftX: Int, fixture: Fixture, button: MouseButton = MouseButton.LEFT_BUTTON) {
fixture.runJs("""
const updatedPoint = new Point(${this.point.x + shiftX}, ${this.point.y});
robot.click(component, updatedPoint, $button, 2)
robot.click(component, updatedPoint, MouseButton.$button, 2)
""".trimIndent())
}
fun RemoteText.tripleClickOnRight(shiftX: Int, fixture: Fixture, button: MouseButton = MouseButton.LEFT_BUTTON) {
fixture.runJs("""
const updatedPoint = new Point(${this.point.x + shiftX}, ${this.point.y});
robot.click(component, updatedPoint, $button, 3)
robot.click(component, updatedPoint, MouseButton.$button, 3)
""".trimIndent())
}