Browse Source

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

pull/1417/head
贤心 1 year ago
parent
commit
2e27604e15
  1. 2
      src/modules/layer.js

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

Loading…
Cancel
Save