mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed some errors with installation of extension, and added a function where the toast is closed when clicked
This commit is contained in:
20
static/dist/lib/materialize.js
vendored
20
static/dist/lib/materialize.js
vendored
@@ -1848,6 +1848,26 @@ $(document).ready(function(){
|
||||
}
|
||||
});
|
||||
|
||||
hammerHandler.on('tap', function(e) {
|
||||
var deltaX = e.deltaX;
|
||||
var activationDistance = 80;
|
||||
|
||||
// If toast dragged past activation point
|
||||
|
||||
Vel(toast, {marginTop: '-40px', opacity: 0}, { duration: 375,
|
||||
easing: 'easeOutExpo',
|
||||
queue: false,
|
||||
complete: function(){
|
||||
if(typeof(completeCallback) === "function") {
|
||||
completeCallback();
|
||||
}
|
||||
toast.parentNode.removeChild(toast);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
return toast;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user