From ff35ce06cd001d9cf335a4c373fe471e8d20a0af Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 30 Dec 2021 11:24:07 +0800 Subject: [PATCH] * Hide contextmenu when page scroll. --- module/productplan/js/browse.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/productplan/js/browse.js b/module/productplan/js/browse.js index a114e35ecb..5b6e183368 100644 --- a/module/productplan/js/browse.js +++ b/module/productplan/js/browse.js @@ -91,6 +91,12 @@ $(function() $.zui.ContextMenu.show(items, items.$options || {event: event}); }); } + + /* Hide contextmenu when page scroll */ + $(window).on('scroll', function() + { + $.zui.ContextMenu.hide(); + }); }); /* Define menu creators */