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

How can I do "showOnSwipeOfView" #28

Closed
ryc16 opened this issue Jul 15, 2016 · 3 comments
Closed

How can I do "showOnSwipeOfView" #28

ryc16 opened this issue Jul 15, 2016 · 3 comments

Comments

@ryc16
Copy link

ryc16 commented Jul 15, 2016

Hi,

I saw there are an attribute "hideOnSwipeOfView". From your demo where you use ListView for hideOnSwipeOfView. When scroll down, the FAB hide; and when scroll up, the FAB show. I would like to do other way around - show when scroll down and hide when scroll up (basically on top). How to do this way?

Thanks

@bradmartin
Copy link
Collaborator

@ryc16 - instead of using the built in hideOnSwipeOfView attribute you would add a gesture to some layout on your page and reverse the animations. We use the NS animation API to do those effects. So it's nothing secret 😉 If you need more info let me know.

@ryc16
Copy link
Author

ryc16 commented Jul 15, 2016

@bradmartin, understood. looked at your plugin and found it is in fab-common.js. Was hoping it supports out of box. Probably will change your plugin but it is nice if it is included into your plugin.

@sitefinitysteve
Copy link
Contributor

You shouldn't change the plugin at all, you should just implement the swipe on your code. However i think its a valid request to consider... I just don't have time today :)

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

No branches or pull requests

3 participants