Closed utubo closed 6 years ago
let rangeElm = byId(id);
(e, gesture)
gesture
getById
getByClass
strokeSize
64
SimpleGesture.onGestureStart(e, gesture);
if (gesture.length > MAX_LENGTH) return;
let rangeElm = byId(id);
→ もうrangeだけじゃないので変数名を変える(e, gesture)
→gesture
は不要getById
とgetByClass
の後に空行いれたほうがいいかなstrokeSize
はデフォルト64
にしようかなSimpleGesture.onGestureStart(e, gesture);
→gesture
は不要if (gesture.length > MAX_LENGTH) return;
→ MAX_LENGTHを超えた場合tcouhendでジェスチャは無効にするべきフラグが必要?