Skip to content

Commit 81de415

Browse files
author
Maximilian Heinz
committed
fix: remove commented out preventDefault
1 parent c01ad30 commit 81de415

7 files changed

Lines changed: 251 additions & 260 deletions

File tree

dist/jquery.lory.js

Lines changed: 124 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
var a = factory();
88
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
99
}
10-
})(this, function() {
10+
})(typeof self !== 'undefined' ? self : this, function() {
1111
return /******/ (function(modules) { // webpackBootstrap
1212
/******/ // The module cache
1313
/******/ var installedModules = {};
@@ -43,9 +43,6 @@ return /******/ (function(modules) { // webpackBootstrap
4343
/******/ // expose the module cache
4444
/******/ __webpack_require__.c = installedModules;
4545
/******/
46-
/******/ // identity function for calling harmony imports with the correct context
47-
/******/ __webpack_require__.i = function(value) { return value; };
48-
/******/
4946
/******/ // define getter function for harmony exports
5047
/******/ __webpack_require__.d = function(exports, name, getter) {
5148
/******/ if(!__webpack_require__.o(exports, name)) {
@@ -73,7 +70,7 @@ return /******/ (function(modules) { // webpackBootstrap
7370
/******/ __webpack_require__.p = "";
7471
/******/
7572
/******/ // Load entry module and return exports
76-
/******/ return __webpack_require__(__webpack_require__.s = 7);
73+
/******/ return __webpack_require__(__webpack_require__.s = 8);
7774
/******/ })
7875
/************************************************************************/
7976
/******/ ([
@@ -118,19 +115,19 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
118115

119116
exports.lory = lory;
120117

121-
var _detectPrefixes = __webpack_require__(3);
118+
var _detectPrefixes = __webpack_require__(2);
122119

123120
var _detectPrefixes2 = _interopRequireDefault(_detectPrefixes);
124121

125-
var _detectSupportsPassive = __webpack_require__(4);
122+
var _detectSupportsPassive = __webpack_require__(3);
126123

127124
var _detectSupportsPassive2 = _interopRequireDefault(_detectSupportsPassive);
128125

129-
var _dispatchEvent = __webpack_require__(5);
126+
var _dispatchEvent = __webpack_require__(4);
130127

131128
var _dispatchEvent2 = _interopRequireDefault(_dispatchEvent);
132129

133-
var _defaults = __webpack_require__(2);
130+
var _defaults = __webpack_require__(6);
134131

135132
var _defaults2 = _interopRequireDefault(_defaults);
136133

@@ -609,7 +606,6 @@ function lory(slider, opts) {
609606
}
610607

611608
if (!isScrolling && touchOffset) {
612-
event.preventDefault();
613609
translate(position.x + delta.x, 0, null);
614610
}
615611

@@ -709,118 +705,6 @@ function lory(slider, opts) {
709705
/* 2 */
710706
/***/ (function(module, exports, __webpack_require__) {
711707

712-
"use strict";
713-
714-
715-
Object.defineProperty(exports, "__esModule", {
716-
value: true
717-
});
718-
exports.default = {
719-
/**
720-
* slides scrolled at once
721-
* @slidesToScroll {Number}
722-
*/
723-
slidesToScroll: 1,
724-
725-
/**
726-
* time in milliseconds for the animation of a valid slide attempt
727-
* @slideSpeed {Number}
728-
*/
729-
slideSpeed: 300,
730-
731-
/**
732-
* time in milliseconds for the animation of the rewind after the last slide
733-
* @rewindSpeed {Number}
734-
*/
735-
rewindSpeed: 600,
736-
737-
/**
738-
* time for the snapBack of the slider if the slide attempt was not valid
739-
* @snapBackSpeed {Number}
740-
*/
741-
snapBackSpeed: 200,
742-
743-
/**
744-
* Basic easing functions: https://developer.mozilla.org/de/docs/Web/CSS/transition-timing-function
745-
* cubic bezier easing functions: http://easings.net/de
746-
* @ease {String}
747-
*/
748-
ease: 'ease',
749-
750-
/**
751-
* if slider reached the last slide, with next click the slider goes back to the startindex.
752-
* use infinite or rewind, not both
753-
* @rewind {Boolean}
754-
*/
755-
rewind: false,
756-
757-
/**
758-
* number of visible slides or false
759-
* use infinite or rewind, not both
760-
* @infinite {number}
761-
*/
762-
infinite: false,
763-
764-
/**
765-
* the slide index to show when the slider is initialized.
766-
* @initialIndex {number}
767-
*/
768-
initialIndex: 0,
769-
770-
/**
771-
* class name for slider frame
772-
* @classNameFrame {string}
773-
*/
774-
classNameFrame: 'js_frame',
775-
776-
/**
777-
* class name for slides container
778-
* @classNameSlideContainer {string}
779-
*/
780-
classNameSlideContainer: 'js_slides',
781-
782-
/**
783-
* class name for slider prev control
784-
* @classNamePrevCtrl {string}
785-
*/
786-
classNamePrevCtrl: 'js_prev',
787-
788-
/**
789-
* class name for slider next control
790-
* @classNameNextCtrl {string}
791-
*/
792-
classNameNextCtrl: 'js_next',
793-
794-
/**
795-
* class name for current active slide
796-
* if emptyString then no class is set
797-
* @classNameActiveSlide {string}
798-
*/
799-
classNameActiveSlide: 'active',
800-
801-
/**
802-
* enables mouse events for swiping on desktop devices
803-
* @enableMouseEvents {boolean}
804-
*/
805-
enableMouseEvents: false,
806-
807-
/**
808-
* window instance
809-
* @window {object}
810-
*/
811-
window: typeof window !== 'undefined' ? window : null,
812-
813-
/**
814-
* If false, slides lory to the first slide on window resize.
815-
* @rewindOnResize {boolean}
816-
*/
817-
rewindOnResize: true
818-
};
819-
820-
/***/ }),
821-
/* 3 */
822-
/***/ (function(module, exports, __webpack_require__) {
823-
824708
"use strict";
825709
/* WEBPACK VAR INJECTION */(function(global) {
826710

@@ -881,7 +765,7 @@ function detectPrefixes() {
881765
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
882766

883767
/***/ }),
884-
/* 4 */
768+
/* 3 */
885769
/***/ (function(module, exports, __webpack_require__) {
886770

887771
"use strict";
@@ -909,7 +793,7 @@ function detectSupportsPassive() {
909793
}
910794

911795
/***/ }),
912-
/* 5 */
796+
/* 4 */
913797
/***/ (function(module, exports, __webpack_require__) {
914798

915799
"use strict";
@@ -920,7 +804,7 @@ Object.defineProperty(exports, "__esModule", {
920804
});
921805
exports.default = dispatchEvent;
922806

923-
var _customEvent = __webpack_require__(6);
807+
var _customEvent = __webpack_require__(5);
924808

925809
var _customEvent2 = _interopRequireDefault(_customEvent);
926810

@@ -944,7 +828,7 @@ function dispatchEvent(target, type, detail) {
944828
}
945829

946830
/***/ }),
947-
/* 6 */
831+
/* 5 */
948832
/***/ (function(module, exports, __webpack_require__) {
949833

950834
/* WEBPACK VAR INJECTION */(function(global) {
@@ -999,7 +883,120 @@ function CustomEvent (type, params) {
999883
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
1000884

1001885
/***/ }),
1002-
/* 7 */
886+
/* 6 */
887+
/***/ (function(module, exports, __webpack_require__) {
888+
889+
"use strict";
890+
891+
892+
Object.defineProperty(exports, "__esModule", {
893+
value: true
894+
});
895+
exports.default = {
896+
/**
897+
* slides scrolled at once
898+
* @slidesToScroll {Number}
899+
*/
900+
slidesToScroll: 1,
901+
902+
/**
903+
* time in milliseconds for the animation of a valid slide attempt
904+
* @slideSpeed {Number}
905+
*/
906+
slideSpeed: 300,
907+
908+
/**
909+
* time in milliseconds for the animation of the rewind after the last slide
910+
* @rewindSpeed {Number}
911+
*/
912+
rewindSpeed: 600,
913+
914+
/**
915+
* time for the snapBack of the slider if the slide attempt was not valid
916+
* @snapBackSpeed {Number}
917+
*/
918+
snapBackSpeed: 200,
919+
920+
/**
921+
* Basic easing functions: https://developer.mozilla.org/de/docs/Web/CSS/transition-timing-function
922+
* cubic bezier easing functions: http://easings.net/de
923+
* @ease {String}
924+
*/
925+
ease: 'ease',
926+
927+
/**
928+
* if slider reached the last slide, with next click the slider goes back to the startindex.
929+
* use infinite or rewind, not both
930+
* @rewind {Boolean}
931+
*/
932+
rewind: false,
933+
934+
/**
935+
* number of visible slides or false
936+
* use infinite or rewind, not both
937+
* @infinite {number}
938+
*/
939+
infinite: false,
940+
941+
/**
942+
* the slide index to show when the slider is initialized.
943+
* @initialIndex {number}
944+
*/
945+
initialIndex: 0,
946+
947+
/**
948+
* class name for slider frame
949+
* @classNameFrame {string}
950+
*/
951+
classNameFrame: 'js_frame',
952+
953+
/**
954+
* class name for slides container
955+
* @classNameSlideContainer {string}
956+
*/
957+
classNameSlideContainer: 'js_slides',
958+
959+
/**
960+
* class name for slider prev control
961+
* @classNamePrevCtrl {string}
962+
*/
963+
classNamePrevCtrl: 'js_prev',
964+
965+
/**
966+
* class name for slider next control
967+
* @classNameNextCtrl {string}
968+
*/
969+
classNameNextCtrl: 'js_next',
970+
971+
/**
972+
* class name for current active slide
973+
* if emptyString then no class is set
974+
* @classNameActiveSlide {string}
975+
*/
976+
classNameActiveSlide: 'active',
977+
978+
/**
979+
* enables mouse events for swiping on desktop devices
980+
* @enableMouseEvents {boolean}
981+
*/
982+
enableMouseEvents: false,
983+
984+
/**
985+
* window instance
986+
* @window {object}
987+
*/
988+
window: typeof window !== 'undefined' ? window : null,
989+
990+
/**
991+
* If false, slides lory to the first slide on window resize.
992+
* @rewindOnResize {boolean}
993+
*/
994+
rewindOnResize: true
995+
};
996+
997+
/***/ }),
998+
/* 7 */,
999+
/* 8 */
10031000
/***/ (function(module, exports, __webpack_require__) {
10041001

10051002
"use strict";

dist/jquery.lory.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.lory.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)