markbind icon indicating copy to clipboard operation
markbind copied to clipboard

Make it easier to move to a popover

Open yucheng11122017 opened this issue 1 year ago • 3 comments

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

No response

What is the area that this feature belongs to?

No response

Is your feature request related to a problem? Please describe.

If a user wants to move to a popover when it is open to scroll it or to click on a link within it, he/she has to move across the arrow to hover over the popover.

Ie image The path in green will allow users to navigate to the popover without it closing since it passes through the arrow. But the path in red will result in the popover closing since user is technically not hovering over the trigger or the popover.

This makes it harder for users to scroll the popover in this case.

Describe the solution you'd like

Allow users to navigate to the popover without having to pass by the arrow so strictly.

From the example above, allow the red path to be a viable way for a user to navigate to the popover

Describe alternatives you've considered

No response

Additional context

No response

yucheng11122017 avatar Mar 31 '23 03:03 yucheng11122017

Allow users to navigate to the popover without having to pass by the arrow so strictly.

Hey @yucheng11122017, do you have a solution in mind on how to fix this? If so it would be good to add it in the description!

If not, I think this issue might not be suitable as a good-first-issue since it requires some investigation on when the popover closes and developing a (possibly nontrivial) solution to fix it :)

jovyntls avatar Mar 31 '23 04:03 jovyntls

Oh ok! I'll remove the label then!

yucheng11122017 avatar Mar 31 '23 08:03 yucheng11122017

From my visual inspection of the popover, I believe that it calculates the shortest distance from the cursor to itself. If the cursor's position exceeds this shortest distance, I think the popover is designed to disappear. This seems intended to prevent the popover from sticking on the screen when the cursor is not focused on or hovering over the popover's source or content.

To address any potential issues arising from this, I would suggest considering an alternative component, such as a dialog box.

SPWwj avatar Jun 13 '23 14:06 SPWwj