@@ -37,6 +37,8 @@ const configurations = {
37
37
widthTransition : undefined ,
38
38
heightTransition : undefined ,
39
39
overflowHidden : true ,
40
+ stopPropagation : true ,
41
+ preventDefault : true ,
40
42
} ) ,
41
43
} ;
42
44
@@ -45,7 +47,7 @@ const configurations = {
45
47
* if an option is not customized by the user, the default value set
46
48
* in 'configurations.default' will be returned instead.
47
49
* @see {@link CONFIG }
48
- * @see {@link module:animate~ configurations }
50
+ * @see {@link configurations }
49
51
*/
50
52
const configHandler = {
51
53
/**
@@ -71,7 +73,7 @@ const configHandler = {
71
73
* Object that handles configurations, either customized by the user
72
74
* or default values defined in 'configurations.default' object
73
75
* @type {Object.<string,any> }
74
- * @see {@link module:animate~ configurations }
76
+ * @see {@link configurations }
75
77
*/
76
78
const CONFIG = new Proxy ( configurations , configHandler ) ;
77
79
@@ -570,7 +572,10 @@ const preset = (el, args) => {
570
572
*/
571
573
const eventHandler = ( el , animationId , opts ) => {
572
574
return ( /** @type {Event } */ e ) => {
573
- const { stopPropagation = true , preventDefault = true } = opts ;
575
+ const {
576
+ stopPropagation = CONFIG . stopPropagation ,
577
+ preventDefault = CONFIG . preventDefault ,
578
+ } = opts ;
574
579
if ( stopPropagation ) e . stopPropagation ( ) ;
575
580
if ( preventDefault ) e . preventDefault ( ) ;
576
581
0 commit comments