mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
bbox: doubletap pic for fullscreen
This commit is contained in:
parent
c2a0b1b4c6
commit
3692fc9d83
|
@ -939,6 +939,7 @@ window.baguetteBox = (function () {
|
|||
else
|
||||
timer.rm(rotn);
|
||||
|
||||
var ctime = 0;
|
||||
el.onclick = function (e) {
|
||||
var rc = e.target.getBoundingClientRect(),
|
||||
x = e.clientX - rc.left,
|
||||
|
@ -953,6 +954,11 @@ window.baguetteBox = (function () {
|
|||
clmod(ebi('bbox-btns'), 'off', 't');
|
||||
clmod(btnPrev, 'off', 't');
|
||||
clmod(btnNext, 'off', 't');
|
||||
|
||||
if (Date.now() - ctime <= 500)
|
||||
tglfull();
|
||||
|
||||
ctime = Date.now();
|
||||
};
|
||||
|
||||
var prev = QS('.full-image.vis');
|
||||
|
|
Loading…
Reference in a new issue