Skip to content

Implement ClickEvent.getRelativeY() #20488

@mvysny

Description

@mvysny

Describe your motivation

Vaadin 8 used to offer MouseEvents.getRelativeY() which would return the mouse position (y coordinate) when the click took place, relative to the clicked component.

Unfortunately, there's no such function in Vaadin 23's ClickEvent - it offers screenY and clientY but the relativeY value can not be calculated from those values.

Describe the solution you'd like

A ClickEvent.getRelativeY() function, mimicking Vaadin 8's MouseEvents.getRelativeY(). Also ContextMenuEvent.getRelativeY() function.

Metadata

Metadata

Assignees

Projects

Status

Ready for Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions