jordansissel / fingerpoken

Use your browser as a remote and touchpad (iphone/ipad/laptop, etc)
Other
45 stars 7 forks source link

Keyboard button to replace gesture #3

Closed jcartledge closed 13 years ago

jcartledge commented 13 years ago

I had difficulty getting the 2-finger-90-degrees-clockwise gesture working consistently so I hacked in a keyboard button instead. This replaces the gesture but could be modified so the gesture trigger still works as well.

I'm calling it a hack as it uses an invisible textarea placed over a button. The button itself does nothing, but when the user taps it the textarea gains focus which raises the soft keyboard.

Changes are simple, and all in the client (haml/sass/js) part of the app. Let me know what you think.

See screenshots below:

fingerpoken with keyboard button, keyboard inactive

  1. fingerpoken with keyboard button, keyboard inactive

fingerpoken with keyboard button, keyboard active

  1. fingerpoken with keyboard button, keyboard active
jordansissel commented 13 years ago

The whole 90-degree rotation thing was more a gimmick/learning thing than a real feature, thanks for fixing it!

jordansissel commented 13 years ago

I've merged in your change, very nice! Thanks :)

New gem published with your change: 0.2.20110101195735

jcartledge commented 13 years ago

Glad I could help :)

jordansissel commented 13 years ago

I was really confused how this was implemented, but I finally figured it out. Very clever!