kkortes / leaf

Google Material Design Theme
285 stars 42 forks source link

Add hammer.js for smartphone/tablet multigestures #2

Closed kkortes closed 10 years ago

kkortes commented 10 years ago

Right now .drop's (dropdowns) triggers on hover, which is unfunctional on smartphones and tables. My idea here is to implement hammer.js to simulate a hover on tap.

The other solution to this would be to have to events triggering the .drop's to show, both hover (for normal web views) and tap (for smartphones/tablets) but since this is a web framework and not a app framework I'd rather go with the first option.

kkortes commented 10 years ago

Also this is convenient for the slider component, to add swipe left/-right that is.

kkortes commented 10 years ago

For reference: http://hammerjs.github.io/