Comparing version 2.3.0 to 2.3.1
{ | ||
"name": "flot", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"main": "dist/es5/jquery.flot.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -56,2 +56,20 @@ /* global jQuery */ | ||
var tap = { | ||
generatePlothoverEvent: function (e) { | ||
var o = plot.getOptions(), | ||
newEvent = new CustomEvent('mouseevent'); | ||
//transform from touch event to mouse event format | ||
newEvent.pageX = e.detail.changedTouches[0].pageX; | ||
newEvent.pageY = e.detail.changedTouches[0].pageY; | ||
newEvent.clientX = e.detail.changedTouches[0].clientX; | ||
newEvent.clientY = e.detail.changedTouches[0].clientY; | ||
if (o.grid.hoverable) { | ||
doTriggerClickHoverEvent(newEvent, eventType.hover, 30); | ||
} | ||
return false; | ||
} | ||
}; | ||
function bindEvents(plot, eventHolder) { | ||
@@ -106,20 +124,2 @@ var o = plot.getOptions(); | ||
var tap = { | ||
generatePlothoverEvent: function (e) { | ||
var o = plot.getOptions(), | ||
newEvent = new CustomEvent('mouseevent'); | ||
//transform from touch event to mouse event format | ||
newEvent.pageX = e.detail.changedTouches[0].pageX; | ||
newEvent.pageY = e.detail.changedTouches[0].pageY; | ||
newEvent.clientX = e.detail.changedTouches[0].clientX; | ||
newEvent.clientY = e.detail.changedTouches[0].clientY; | ||
if (o.grid.hoverable) { | ||
doTriggerClickHoverEvent(newEvent, eventType.hover, 30); | ||
} | ||
return false; | ||
} | ||
}; | ||
if (options.grid.hoverable || options.grid.clickable) { | ||
@@ -126,0 +126,0 @@ plot.hooks.bindEvents.push(bindEvents); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
974424
19381