equal
deleted
inserted
replaced
783 size_bug_fix: true, |
783 size_bug_fix: true, |
784 /* Resize the canvas after load (fixes a bug on iPad and FF Mac) */ |
784 /* Resize the canvas after load (fixes a bug on iPad and FF Mac) */ |
785 force_resize: false, |
785 force_resize: false, |
786 allow_double_click: true, |
786 allow_double_click: true, |
787 /* Allows Double Click to create a node on an empty background */ |
787 /* Allows Double Click to create a node on an empty background */ |
|
788 zoom_on_scroll: true, |
|
789 /* Allows to use the scrollwheel to zoom */ |
788 element_delete_delay: 0, |
790 element_delete_delay: 0, |
789 /* Delay between clicking on the bin on an element and really deleting it |
791 /* Delay between clicking on the bin on an element and really deleting it |
790 Set to 0 for delete confirm */ |
792 Set to 0 for delete confirm */ |
791 autoscale_padding: 50, |
793 autoscale_padding: 50, |
792 |
794 |
2640 mouseup: function(_event) { |
2642 mouseup: function(_event) { |
2641 _event.preventDefault(); |
2643 _event.preventDefault(); |
2642 _this.onMouseUp(_event, false); |
2644 _this.onMouseUp(_event, false); |
2643 }, |
2645 }, |
2644 mousewheel: function(_event, _delta) { |
2646 mousewheel: function(_event, _delta) { |
2645 _event.preventDefault(); |
2647 if(_renkan.options.zoom_on_scroll) { |
2646 if (_allowScroll) { |
2648 _event.preventDefault(); |
2647 _this.onScroll(_event, _delta); |
2649 if (_allowScroll) { |
|
2650 _this.onScroll(_event, _delta); |
|
2651 } |
2648 } |
2652 } |
2649 }, |
2653 }, |
2650 touchstart: function(_event) { |
2654 touchstart: function(_event) { |
2651 _event.preventDefault(); |
2655 _event.preventDefault(); |
2652 var _touches = _event.originalEvent.touches[0]; |
2656 var _touches = _event.originalEvent.touches[0]; |