Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further improvements for hotspots element #2156

Merged
merged 4 commits into from
Oct 8, 2024
Merged

Conversation

tf
Copy link
Member

@tf tf commented Oct 7, 2024

REDMINE-20673

tf added 3 commits October 7, 2024 17:07
Do not toggle back to previous emulation mode when leaving edit area
view. Keep preview stable when returning to area list or selecting
sibling content element.

Restore selected area to help Firefox that loses track of scroller
position when preview dimensions change.

REDMINE-20673
Selecting the section after a pan-zoom hotspot had been selected,
caused the pan-zoom animation to stay stuck in Firefox instead of
reverting to the initial step.

The `mousedown` on the section triggers both the selection change and
the `onDismiss` callback of the floating tooltip that is supposed to
scroll the hotspots scroller back to the first position.

When the section is selected, we toggle a `selected` CSS class on the
section to display a selection rect made of pseudo elements. Toggling
these pseudo elements causes a reflow that makes Firefox drop the
`scroll` event that would have been triggered by scrolling the
hotspots scroller.

The scroll timeline polyfill then has no opportunity to refresh the
position of the hotspots image causing it to stay stuck.

REDMINE-20673
@tf tf added this to the v17.1 milestone Oct 7, 2024
@tf tf merged commit cb9a10c into codevise:master Oct 8, 2024
13 checks passed
@tf tf deleted the hotspots-8 branch October 11, 2024 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant