优化 layer.photos 触发鼠标滚轮事件的元素

This commit is contained in:
贤心 2023-10-31 21:33:11 +08:00
parent d71106eefd
commit 2e27604e15

View File

@ -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) {