From 2e27604e15e14a392bb418dd9199cfb91012163d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Tue, 31 Oct 2023 21:33:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20`layer.photos`=20=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E9=BC=A0=E6=A0=87=E6=BB=9A=E8=BD=AE=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E5=85=83=E7=B4=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/layer.js b/src/modules/layer.js index 2d0f8e08..66cc5bee 100644 --- a/src/modules/layer.js +++ b/src/modules/layer.js @@ -1590,7 +1590,7 @@ layer.photos = function(options, loop, key){ }); // 鼠标滚轮缩放图片事件 - dict.main.children('img').on('mousewheel DOMMouseScroll', function(e) { + dict.main.on('mousewheel DOMMouseScroll', function(e) { var delta = e.originalEvent.wheelDelta || -e.originalEvent.detail; var zoomElem = dict.main.find('[toolbar-event="zoom"]'); if (delta > 0) {