mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge pull request #1112 from lemondevxyz/fix-issue-1105
make buttons visible in mobile version of presentation mode in slides
This commit is contained in:
commit
d3b0d75822
@ -208,14 +208,23 @@ define([
|
||||
var addEvent = function () {
|
||||
console.log($modal);
|
||||
var icon_to;
|
||||
$modal.mousemove(function () {
|
||||
var mousemove = function () {
|
||||
console.log($modal);
|
||||
var $buttons = $modal.find('.cp-app-slide-modal-button');
|
||||
$buttons.show();
|
||||
|
||||
if (icon_to) { window.clearTimeout(icon_to); }
|
||||
icon_to = window.setTimeout(function() {
|
||||
$buttons.fadeOut();
|
||||
}, 1000);
|
||||
});
|
||||
}
|
||||
|
||||
$modal.mousemove(mousemove);
|
||||
$modal.on('touchstart', mousemove);
|
||||
$modal.on('touchend', mousemove);
|
||||
$modal.on('touchcancel', mousemove);
|
||||
$modal.on('touchmove', mousemove);
|
||||
|
||||
$modal.find('#cp-app-slide-modal-exit').click(function () {
|
||||
var ev = $.Event("keyup");
|
||||
ev.which = 27;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user