mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 14:04:45 -04:00
Improves filter. Still problems with filter and preview.
This commit is contained in:
parent
27c598d96e
commit
842bca74f9
5 changed files with 32 additions and 6 deletions
|
@ -198,6 +198,9 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/settings', 'core/resource',
|
|||
} else if (key === 70) { // f
|
||||
onFullscreen();
|
||||
}
|
||||
|
||||
event.stopImmediatePropagation();
|
||||
return false;
|
||||
},
|
||||
|
||||
initEntry = function (entry) {
|
||||
|
@ -234,7 +237,6 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/settings', 'core/resource',
|
|||
$('#pv-img-bar-next, #pv-img-next').on('click', onNext);
|
||||
$('#pv-img-bar-close, #pv-img-close').on('click', onExit);
|
||||
$('#pv-img-bar-fullscreen').on('click', onFullscreen);
|
||||
$('#pv-img-overlay').on('keydown', onKeydown);
|
||||
|
||||
$('#pv-img-prev')
|
||||
.on('mouseenter', function () {
|
||||
|
@ -260,11 +262,12 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/settings', 'core/resource',
|
|||
$('#pv-img-bar-close').removeClass('hover');
|
||||
});
|
||||
|
||||
|
||||
$('#pv-img-overlay')
|
||||
.on('keydown', onKeydown)
|
||||
.on('click mousedown mousemove keydown keypress', function (event) {
|
||||
|
||||
event.stopPropagation();
|
||||
event.stopImmediatePropagation();
|
||||
return false;
|
||||
})
|
||||
.on('mousemove', function (event) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue