Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: b10cb41d8b0166a80f50044421ecbfd69d95f58b https://github.com/xwiki/xwiki-platform/commit/b10cb41d8b0166a80f50044421ecb... Author: Michael Hamann <[email protected]> Date: 2026-09-15 (Tue, 15 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-annotation/xwiki-platform-annotation-ui/src/main/resources/AnnotationCode/Script.xml Log Message: ----------- XWIKI-23740: Improve the UI of Comments: Annotation look * Fixed the annotation bubble opening in the top left corner of the viewport instead of next to the annotation when the annotation toggle is activated by the keyboard or programmatically The bubble position detected clicks that no pointer produced with "event.pageX === 0 && event.pageY === 0". Since pageX/pageY are the client coordinates plus the scroll offset, they are only both 0 when the page isn't scrolled, so on a scrolled page the check missed and the bubble was positioned at (0, scrollY), i.e. in the top left corner of the viewport, where the annotation settings panel covers it. Use event.detail instead, the click count, which is 0 exactly for clicks that no pointer produced, and 1 or more for mouse clicks and for the compatibility click of a touch tap. This also fixes AnnotationsIT#addEditAndDeleteAnnotations, which started failing on Chrome only: the page object now opens the annotation with a programmatic click, which browsers report the same way as a keyboard activation, except that Firefox reports pageY as 0 there while Chrome adds the scroll offset. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications