(Touch) Fast Buttons with KnockoutJS click binding

1,500 views
Skip to first unread message

dyml

unread,
Jul 2, 2012, 11:45:17 AM7/2/12
to knock...@googlegroups.com
Hello!

How do i implement a "Fast touch button" with the knockout click binding?

I am building a front end application that should also work on mobile devices. Right now, the click events are being delayed by 300 ms (by the mobile browser). Alot of people have been tinkering with this, possible solutions are available here (http://brian.io/slides/debug-mobile/#/32). But - I really need to figure out how to change the click binding (or perhaps creating a fastClick binding) allowing me to implement triggering my ViewModels click function without waiting for the 300ms sleep. Ofcourse the fastclick binding should also work in a normal, non touch, browser.

Do you have any ideas?  Any help is most welcome.
Have a great day / night!

dyml

unread,
Jul 3, 2012, 7:01:04 AM7/3/12
to knock...@googlegroups.com
I'd really appreciate some help with this Custom Click Binding.

Casey Corcoran

unread,
Jul 3, 2012, 8:41:36 AM7/3/12
to knock...@googlegroups.com
Pretty simple really:


I just used the Tap.js util that was linked from the presentation to create a "tap" binding.

dyml

unread,
Jul 4, 2012, 4:07:34 AM7/4/12
to knock...@googlegroups.com
Thank you lord, i will integrate it then return with my results :) Thank you for your kindness!


Den tisdagen den 3:e juli 2012 kl. 14:41:36 UTC+2 skrev caseyc:
I just used the Tap.js util that was linked from the presentation to create a "tap" binding.

dyml

unread,
Jul 4, 2012, 5:09:09 AM7/4/12
to knock...@googlegroups.com
It worked! Thank you!


Den tisdagen den 3:e juli 2012 kl. 14:41:36 UTC+2 skrev caseyc:
I just used the Tap.js util that was linked from the presentation to create a "tap" binding.

willi...@gmail.com

unread,
Nov 7, 2013, 5:31:23 AM11/7/13
to knock...@googlegroups.com
He!

Is it still up to date and best practice? I also read an article about Googles FastButton 


but its both not really good working for me. Thats why I am wondering if it is still best practice. 

thank you.

p45...@gmail.com

unread,
Mar 3, 2014, 4:52:04 PM3/3/14
to knock...@googlegroups.com, willi...@gmail.com
Have you found a good solution for this? I'm also not having any luck and the sampel on that iknuth.com site no longer works.

Thanks

Michael Best

unread,
Mar 3, 2014, 8:35:11 PM3/3/14
to knock...@googlegroups.com, willi...@gmail.com, p45...@gmail.com
Reply all
Reply to author
Forward
0 new messages