From 8361ebe9dffc4dc81e2c826ee5fc9b4db0855651 Mon Sep 17 00:00:00 2001 From: xing Date: Tue, 7 Apr 2020 00:15:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tieba page.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tieba page.js b/tieba page.js index 89fcfeb..b891746 100644 --- a/tieba page.js +++ b/tieba page.js @@ -527,6 +527,10 @@ op(); } + function ft(event) { + event.preventDefault(); + } + function god() { let targetNode = document.querySelector("#glob"); let MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; @@ -534,12 +538,15 @@ if (targetNode.style.visibility === 'hidden' && window.hhxx === 1) { targetNode.style.visibility = 'visible'; window.hhxx = 0; + document.querySelector('.ui_slider_hybrid').removeEventListener('touchmove', ft) + } }; let observer = new MutationObserver((mutations) => { let m = mutations[0]; if (m.target.style.display === 'none') { + document.querySelector('.ui_slider_hybrid').addEventListener('touchmove', ft); setTimeout(() => { m.target.style.display = 'block'; m.target.style.visibility = 'hidden';