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

Replace native HTML tooltip for custom POIs with Leaflet Tooltip #415

Merged
merged 1 commit into from
May 14, 2021

Commits on May 14, 2021

  1. replace native HTML tooltip for custom POIs with Leaflet Tooltip

    - the tooltip shows instantly when hovering a POI icon with the mouse cursor
    - the content is the same as for the popup, except for the action button (“delete”) as the button isn't reachable by the mouse (the tooltip disappears when the mouse cursor leaves the icon area)
    - (maybe we should add a hint to the tooltip, e.g. “Click icon for actions” (TBD))
    - the tooltip is only attached to POI icons on devices without a touch interface, i. e. when `BR.Browser.touch` is `false`
    - the tooltip is removed when the icon is clicked, otherwise tooltip and popup would be visible at the same time
    - the tooltip is enabled again when the popup is closed
    mjaschen committed May 14, 2021
    Configuration menu
    Copy the full SHA
    3f8df13 View commit details
    Browse the repository at this point in the history