utubo / firefox-simple_gesture

🦊An add-on that adds simple touch gestures for Firfox for Android. Sorry, I only check issues sometimes.
https://addons.mozilla.org/ja/firefox/addon/simple-gesture/
Other
29 stars 1 forks source link

Self code review #24

Closed utubo closed 4 years ago

utubo commented 6 years ago

いったんクローズ

utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 6 years ago

→ Season 2に持ち越し

utubo commented 6 years ago

options.*

utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 6 years ago

parentByClassgetParentByClass かなぁと思ったけどjQueryとかだとparent()なんだよな…

utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 6 years ago

トーストつくったらまたソースがヤバイことになってしまった

utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 6 years ago

touchstartとtouchmoveはasyncにしたほうがいいかも? touchendはpreventDefaultするのでasyncはダメ ↓ 結論:このままでOKいいや。 ためしてみた。 https://utb.sakura.ne.jp/samples/touchmove_interval.html アドオンを無効にしても対して変わらない。 asyncにしたらむしろ重くなったまである

この件別issueにしとこうかな → #39

utubo commented 6 years ago
utubo commented 6 years ago

バージョンの上げ方間違ったわ… 2.5.5→2.6の間違いだわ…

utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 6 years ago

const ifById = id => (typeof id === 'string') ? byId(id): id; const fadeout = elm => { ifById(elm).classList.add('transparent'); }; const fadein = elm => { ifById(elm).classList.remove('transparent'); };

↓
```javascript
const findCustomGesture = id => exData.customGestureList.find((e, i, a) => e.id === id);
const ifById = id => (typeof id === 'string') ? byId(id): id;
const fadeout = elm => ifById(elm).classList.add('transparent');
const fadein = elm => ifById(elm).classList.remove('transparent');
utubo commented 6 years ago
utubo commented 6 years ago
utubo commented 5 years ago
utubo commented 4 years ago

このIssueはクローズして、残りはSeason 2へ持ち越し