Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

wip - setup event bus to listen for touches. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

willrax
Copy link
Owner

@willrax willrax commented Feb 17, 2018

On mobile browsers hover is replaced with touch to trigger the tooltip. This causes the tool tip to not close when you touch anywhere else on the document.

This adds an event bus to listen for touches on the document and then resets the visible value to null.

We change from false to null here, because we don’t want to override any of the user overrides. Eg; if you as a developer manually control the visibility of a tooltip then we won’t try to automatically open or close it.

@willrax willrax changed the title setup event bus to listen for touches. wip - setup event bus to listen for touches. Feb 17, 2018
On mobile browsers hover is replaced with touch to trigger the tooltip. This causes the tool tip to not close when you touch anywhere else on the document.

This adds an event bus to listen for touches on the document and then resets the visible value to null.

We change from false to null here, because we don’t want to override any of the user overrides. Eg; if you as a developer manually control the visibility of a tooltip then we won’t try to automatically open or close it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant