123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- (function($) {
- function postInit(target, data, options){
- this.bindCustomEvents = function() {
- this.eventCanvas._elem.bind('vclick', {plot:this}, this.onClick);
- this.eventCanvas._elem.bind('dblclick', {plot:this}, this.onDblClick);
- this.eventCanvas._elem.bind('taphold', {plot:this}, this.onDblClick);
- this.eventCanvas._elem.bind('vmousedown', {plot:this}, this.onMouseDown);
- this.eventCanvas._elem.bind('vmousemove', {plot:this}, this.onMouseMove);
- this.eventCanvas._elem.bind('mouseenter', {plot:this}, this.onMouseEnter);
- this.eventCanvas._elem.bind('mouseleave', {plot:this}, this.onMouseLeave);
- if (this.captureRightClick) {
- this.eventCanvas._elem.bind('vmouseup', {plot:this}, this.onRightClick);
- this.eventCanvas._elem.get(0).oncontextmenu = function() {
- return false;
- };
- }
- else {
- this.eventCanvas._elem.bind('vmouseup', {plot:this}, this.onMouseUp);
- }
- };
- this.plugins.mobile = true;
- }
- $.jqplot.postInitHooks.push(postInit);
- })(jQuery);
|