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

Issues on mobile #23

Closed
andreimoment opened this issue Jun 5, 2017 · 6 comments
Closed

Issues on mobile #23

andreimoment opened this issue Jun 5, 2017 · 6 comments

Comments

@andreimoment
Copy link

Tooltips appear on tapping the element, but do not disappear when the finger is removed.

Also, on a narrow screen, tooltips ignore the positioning (.right tooltips appear centered).

@Akryum
Copy link
Owner

Akryum commented Aug 11, 2017

Tooltips appear on tapping the element, but do not disappear when the finger is removed.

Well, that's the way hover events work on mobile browsers. Maybe open an issue on popper repo.

Also, on a narrow screen, tooltips ignore the positioning (.right tooltips appear centered).

If the tooltip decides there is not enough space, it can change the position.

@yuri-karkh
Copy link

yuri-karkh commented Aug 19, 2017

Confirm such behavior. On mobile on tap tooltip opens and not hides if tap outside.

@iMomen
Copy link

iMomen commented Nov 1, 2017

Any updated about this?

@andreimoment
Copy link
Author

andreimoment commented Nov 1, 2017 via email

@yuri-karkh
Copy link

As a possible turnaround guys: when on mobile u set display:none to the tooltip and attach click event handler for its parent element, then just toggle it from display none to display block on click.

<button class="button text feed-article__people" v-tooltip.bottom-center="bookmarkedPeople"
				v-if="isDesktopView">
				<i class="icon-bookmarked feed-article__peopleIcon"></i> {{ bookmarkedByPeople }}
				bookmark<span v-if="bookmarkedByPeople !== 1">s</span>
			</button>
			<button class="button text feed-article__people" @click="toggleBookmarkedByState( $event )" v-else>
				<i class="icon-bookmarked feed-article__peopleIcon"></i> {{ bookmarkedByPeople }}
				bookmark<span v-if="bookmarkedByPeople !== 1">s</span>
				<div class="feed-article__peopleList" v-html="bookmarkedPeople"></div>
			</button>
+element( 'people' )
		display: inline-block
		position: relative

		+element( 'peopleList', $component )
			display: none

		+modifier( 'open' )
			+element( 'peopleList', $component )
				display: block

@Akryum
Copy link
Owner

Akryum commented Nov 2, 2017

I may have to add touch events to have a better behavior than the browser default on touchscreens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants