Posted By

eryoav on 06/20/12


Tagged

iscroll


Versions (?)

mobile


 / Published in: JavaScript
 

enable input fields with iScroll

  1. this.scroller.options.onBeforeScrollStart = function(e) {
  2. var target = e.target;
  3. while (target.nodeType != 1) target = target.parentNode;
  4. if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA'){
  5. e.preventDefault();
  6. }
  7. }

Report this snippet  

You need to login to post a comment.