stdweb icon indicating copy to clipboard operation
stdweb copied to clipboard

TouchEvents

Open zeroexcuses opened this issue 5 years ago • 4 comments

Hi,

Is there any planned support for TouchEvents? In particular:

finger-down finger-drags across screen finger-up

Thanks!

zeroexcuses avatar Nov 10 '18 08:11 zeroexcuses

Well, everything is technically planned. (:

If you need them then you're free to add them if you feel like it. (Adding new event types is not complicated; you can look at the already existing ones to see how to do it.)

koute avatar Nov 12 '18 20:11 koute

I did not mean to sound entitled. I'm a big fan your stdweb/cargo-web work. :-)

Lately, I've been doing lots of hacks via just using js! { .... }. I was trying to figure out whether to do a hacky js!{ .... register on body of HTML document ... } approach, or if there already was someone else working on it (sounds like this is not the case).

zeroexcuses avatar Nov 12 '18 21:11 zeroexcuses

Don't worry about it. (:

Oh and, since a few versions back you should actually be able to define events inside of your own crate too (through stdweb-derive), so you don't have to register the handlers through js!.

koute avatar Nov 12 '18 23:11 koute

Hi I added preliminary support for touchapi: #305 Please take a look when you have a chance. Thanks in advance.

0b01 avatar Dec 03 '18 08:12 0b01