LoginSignup
0
0

More than 5 years have passed since last update.

iScroll v4 利用時に、テキストボックスが選択不可能になってしまう

Posted at

https://github.com/cubiq/iscroll/issues/83
issueとして出ていた。下記のようにイベントを調整してやると良いようだ。

myScroll = new iScroll('wrapper'), {
  onBeforeScrollStart: function (e) {
    var target = e.target;
    while (target.nodeType != 1) target = target.parentNode;
    if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA')
        e.preventDefault();
  }
});
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0