-
Notifications
You must be signed in to change notification settings - Fork 229
Open
Labels
Description
Code of conduct
- I agree to follow this project's code of conduct.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Impacted component(s)
,
Expected behavior
When scrolling the parent div, the sp-popover
or sp-tooltip
should not get closes automatically.
Actual behavior
When scrolling the parent div, the sp-popover
or sp-tooltip
get closed automatically.
Screenshots
Screen.Recording.2024-02-01.at.12.15.37.PM.mov
What browsers are you seeing the problem in?
Firefox, Chrome, Safari, Microsoft Edge
How can we reproduce this issue?
- Go to 'new.express.adobe.com'
- Create a video project with timeline.
- Increase the scene width using trim handles and observe the timecode popover over the trim handle
- Popover gets closed as soon as the scrolling start.
- Same issue is observed when moving the trackpin near the edge and timeline gets scrolled.
Sample code that illustrates the problem
https://studio.webcomponents.dev/edit/KeJx04t6aDK9hORsw7yP/src/index.ts?p=stories
Logs taken while reproducing problem
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-][Bug]: sp-popover and sp-tooltip closes when parent div gets scrolled[/-][+][feat]: API for persisting Overlay content across parent element scrolls[/+]Westbrook commentedon Mar 5, 2024
This is currently working as expected. I've updated the description to outline that this is a feature request. Would you happen to have any desires or recommendation as to how an API in this are might be shaped?
siddhantAdobe commentedon Mar 6, 2024
In the sample code added, you can check that when scrolling trigger during movement of trackpin div near right edge, the popover gets closed. But we want the popover to stay when scrolling is happening.
What we desire is something like if there can be an attribute to set if we want to close the overlay on scroll or not.
Screen.Recording.2024-03-06.at.11.31.46.AM.mov
Westbrook commentedon Mar 6, 2024
This is outcomes, I'm wondering what you think about an actual alteration of the API to support something like this.
In that way, these questions come to mind:
siddhantAdobe commentedon Apr 1, 2024
@Westbrook