Can anyone from the core team let me know that when will the standard mouse events implemented as directives will come as out of the box support for ionic?
Check out Angular’s docs…
Though not sure why you would need standard mouse events, since this targeted towards mobile…
If i sound naive about how these built in angular events work, then please try running something like
in Android 4.4 and above. Just see how it behaves.
@mhartington The way you suggested works only on browsers but not on real devices. So I came across this method to access large mouse events that works beautifully both on browsers and real devices.
See this new post that I have posted just now.
hmm, well I’ll be, they don’t work…interesting.
So the events types that you listed in your post are more touch related events, not mouse events, so sorry for the confusion.
As for including hammer.js, you don’t need to. Hammer.js has been ported to ionic and is baked in.
You can use this template to create your own directives based on our touch events.
Yeah I knew that hammer.js is baked into Ionic. You taught me that in one of your posts. But when I did not include hammer.js I got “Hammer is undefined” error. So I explicitly included hammer.js and it worked fine.
Saw your codepen. The way I have listed looks more easy. I will stick to what I have done.
And in the meanwhile can you let me know about this: Tutorial to learn about Hardware Back Button
I’d just be worried about any conflicts in what code is being called where. Just keep an eye out for issues and warnings in your console.
Yes sir! I have not received any warnings or errors in console. Hope everything will be fine.
Figured you would love to see this
Yeah I read this on the forum. But it does not work at all.
Works for me.
Are you still including hammer.js?
No I removed hammer.js. I also removed gestures.js
gestures.js? Are you doing your own custom build of ionic?
No I had explicitly included gestures and listed that as one of the source files explicitly.
No the pens correct, I just threw the
on-hold code into an only example I have.
Alright, are you testing this in the browser or device? So it’s the default code, and no
gestures.js…hmmm can you see if there are errors in the console?
This is what I have done.
But when I was trying the new event features I removed hammer and gestures
I am testing it in the browser. Yes it is the default code and no
hammer.js and gestures.js. No I did not notice any errors in the console.
on-touch, on-tap did not fire at all.
come to chat. This is really slow
IRC? On it right now