fulup-bzh / DatePicker

Date Picker compatible with Zurb Foundation under Angular framework.
Other
11 stars 11 forks source link

Date-picker autohide not working on mobile #15

Closed xlegs closed 8 years ago

xlegs commented 8 years ago

This is caused by the dependency on 'mousedown' (lines 627 and 663). Replacing 'mousedown' with 'touchstart' resolves the issue on mobile, but cause the same issue to occur on the desktop.

Can we make it work on both platforms? I tried adding JQueryMobile's vmouse library, but I couldn't get it to work.

For reference: https://api.jquerymobile.com/vmousedown/ and https://stackoverflow.com/questions/11144370/using-mousedown-event-on-mobile-without-jquery-mobile

fulup-bzh commented 8 years ago

Please propose a patch

xlegs commented 8 years ago

I would love to, but I'm not a seasoned angular dev. I'm trying to use Modernizer's touchevents, but I keep running into errors.