Added trigger for handling clicks on dragbars
This commit is contained in:
+6
-2
@@ -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);
|
||||
});
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user