• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision28983 (tree)
Time2020-09-29 22:01:49
Authorxhmikosr

Log Message

www: update baguetteBox to v1.11.1

Change Summary

Incremental Difference

--- trunk/www/source/assets/css/style.css (revision 28982)
+++ trunk/www/source/assets/css/style.css (revision 28983)
@@ -12,10 +12,6 @@
1212 box-sizing: border-box;
1313 }
1414
15-html {
16- height: 100%;
17-}
18-
1915 body {
2016 background-color: #27343c;
2117 color: black;
--- trunk/www/source/assets/css/vendor/baguetteBox.css (revision 28982)
+++ trunk/www/source/assets/css/vendor/baguetteBox.css (revision 28983)
@@ -1,7 +1,7 @@
11 /*!
22 * baguetteBox.js
33 * @author feimosi
4- * @version 1.11.0
4+ * @version 1.11.1
55 * @url https://github.com/feimosi/baguetteBox.js
66 */
77 #baguetteBox-overlay {
--- trunk/www/source/assets/js/baguetteBox-init.js (revision 28982)
+++ trunk/www/source/assets/js/baguetteBox-init.js (revision 28983)
@@ -7,12 +7,13 @@
77 var selector = '.content';
88 var el = document.querySelectorAll(selector);
99
10- if (el.length) {
11- baguetteBox.run(selector, {
12- async: false,
13- buttons: true,
14- noScrollbars: true
15- });
10+ if (el.length === 0) {
11+ return;
1612 }
1713
14+ baguetteBox.run(selector, {
15+ async: false,
16+ buttons: true,
17+ noScrollbars: true
18+ });
1819 })();
--- trunk/www/source/assets/js/vendor/baguetteBox.js (revision 28982)
+++ trunk/www/source/assets/js/vendor/baguetteBox.js (revision 28983)
@@ -1,7 +1,7 @@
11 /*!
22 * baguetteBox.js
33 * @author feimosi
4- * @version 1.11.0
4+ * @version 1.11.1
55 * @url https://github.com/feimosi/baguetteBox.js
66 */
77
@@ -317,27 +317,31 @@
317317 }
318318
319319 function bindEvents() {
320- var options = supports.passiveEvents ? { passive: true } : null;
320+ var passiveEvent = supports.passiveEvents ? { passive: false } : null;
321+ var nonPassiveEvent = supports.passiveEvents ? { passive: true } : null;
322+
321323 bind(overlay, 'click', overlayClickHandler);
322324 bind(previousButton, 'click', previousButtonClickHandler);
323325 bind(nextButton, 'click', nextButtonClickHandler);
324326 bind(closeButton, 'click', closeButtonClickHandler);
325327 bind(slider, 'contextmenu', contextmenuHandler);
326- bind(overlay, 'touchstart', touchstartHandler, options);
327- bind(overlay, 'touchmove', touchmoveHandler, options);
328+ bind(overlay, 'touchstart', touchstartHandler, nonPassiveEvent);
329+ bind(overlay, 'touchmove', touchmoveHandler, passiveEvent);
328330 bind(overlay, 'touchend', touchendHandler);
329331 bind(document, 'focus', trapFocusInsideOverlay, true);
330332 }
331333
332334 function unbindEvents() {
333- var options = supports.passiveEvents ? { passive: true } : null;
335+ var passiveEvent = supports.passiveEvents ? { passive: false } : null;
336+ var nonPassiveEvent = supports.passiveEvents ? { passive: true } : null;
337+
334338 unbind(overlay, 'click', overlayClickHandler);
335339 unbind(previousButton, 'click', previousButtonClickHandler);
336340 unbind(nextButton, 'click', nextButtonClickHandler);
337341 unbind(closeButton, 'click', closeButtonClickHandler);
338342 unbind(slider, 'contextmenu', contextmenuHandler);
339- unbind(overlay, 'touchstart', touchstartHandler, options);
340- unbind(overlay, 'touchmove', touchmoveHandler, options);
343+ unbind(overlay, 'touchstart', touchstartHandler, nonPassiveEvent);
344+ unbind(overlay, 'touchmove', touchmoveHandler, passiveEvent);
341345 unbind(overlay, 'touchend', touchendHandler);
342346 unbind(document, 'focus', trapFocusInsideOverlay, true);
343347 }
Show on old repository browser