优化 layer.photos
触发鼠标滚轮事件的元素
This commit is contained in:
parent
d71106eefd
commit
2e27604e15
@ -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…
Reference in New Issue
Block a user