Added trigger for handling clicks on dragbars

This commit is contained in:
Erik Tiekstra
2017-05-17 14:43:46 +02:00
parent ae9c75265d
commit 4cccacd7c6
3 changed files with 15 additions and 4 deletions
+6 -2
View File
@@ -71,9 +71,13 @@
$input.noCrop.on('change', Event.NoCrop);
$input.border.on('change', Event.SetBorder);
$document.on('PIE:dragged', function() {
console.log('Now you can buy!');
console.log('Dragged the image/dragbar!');
});
$document.on('PIE:needs-dragging', function() {
console.log('You need to drag to be able to buy!');
console.log('Image needs dragging!');
});
$document.on('PIE:dragbar-click', function(e, axis) {
console.log('Clicked on a dragbar! Axis: ' + axis);
});
}());