| @@ -933,7 +933,7 @@ export function initRossMods() { | |||
| 933 | if (!$(e.target).closest('#sheld').length) { | 933 | if (!$(e.target).closest('#sheld').length) { |
| 934 | return; | 934 | return; |
| 935 | } | 935 | } |
| 936 | if ($('#curEditTextarea')) { | 936 | if ($('#curEditTextarea').length) { |
| 937 | // Don't swipe while in text edit mode | 937 | // Don't swipe while in text edit mode |
| 938 | // the ios selection gestures get picked up | 938 | // the ios selection gestures get picked up |
| 939 | // as swipe gestures | 939 | // as swipe gestures |
| @@ -957,7 +957,7 @@ export function initRossMods() { | |||
| 957 | if (!$(e.target).closest('#sheld').length) { | 957 | if (!$(e.target).closest('#sheld').length) { |
| 958 | return; | 958 | return; |
| 959 | } | 959 | } |
| 960 | if ($('#curEditTextarea')) { | 960 | if ($('#curEditTextarea').length) { |
| 961 | // Don't swipe while in text edit mode | 961 | // Don't swipe while in text edit mode |
| 962 | // the ios selection gestures get picked up | 962 | // the ios selection gestures get picked up |
| 963 | // as swipe gestures | 963 | // as swipe gestures |