Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2012-05-22 20:53:15 +0400
committerMarc Delisle <marc@infomarc.info>2012-05-22 20:53:15 +0400
commit33397880bddccebe2cae0d02dd3fb9e8fb76c25d (patch)
treef8c60e6e2f4a101cd8984b5ed47515d189d8774f /js
parent875d9d0f92c91e4cc010b5360fa0547bc98bcb7f (diff)
Panning not supported at the moment
Diffstat (limited to 'js')
-rw-r--r--js/tbl_zoom_plot_jqplot.js43
1 files changed, 0 insertions, 43 deletions
diff --git a/js/tbl_zoom_plot_jqplot.js b/js/tbl_zoom_plot_jqplot.js
index a4482e726d..0ac6c13ff7 100644
--- a/js/tbl_zoom_plot_jqplot.js
+++ b/js/tbl_zoom_plot_jqplot.js
@@ -107,49 +107,6 @@ function scrollToChart() {
$('html,body').animate({scrollTop: x}, 500);
}
-/**
- ** Handlers for panning feature
- **/
-function includePan(currentChart) {
- var mouseDown;
- var lastX;
- var lastY;
- var chartWidth = $('#resizer').width() - 3;
- var chartHeight = $('#resizer').height() - 20;
- $('#querychart').mousedown(function() {
- mouseDown = 1;
- });
-
- $('#querychart').mouseup(function() {
- mouseDown = 0;
- });
- $('#querychart').mousemove(function(e) {
- if (mouseDown == 1) {
- if (e.pageX > lastX) {
- var xExtremes = currentChart.xAxis[0].getExtremes();
- var diff = (e.pageX - lastX) * (xExtremes.max - xExtremes.min) / chartWidth;
- currentChart.xAxis[0].setExtremes(xExtremes.min - diff, xExtremes.max - diff);
- } else if (e.pageX < lastX) {
- var xExtremes = currentChart.xAxis[0].getExtremes();
- var diff = (lastX - e.pageX) * (xExtremes.max - xExtremes.min) / chartWidth;
- currentChart.xAxis[0].setExtremes(xExtremes.min + diff, xExtremes.max + diff);
- }
-
- if (e.pageY > lastY) {
- var yExtremes = currentChart.yAxis[0].getExtremes();
- var ydiff = 1.0 * (e.pageY - lastY) * (yExtremes.max - yExtremes.min) / chartHeight;
- currentChart.yAxis[0].setExtremes(yExtremes.min + ydiff, yExtremes.max + ydiff);
- } else if (e.pageY < lastY) {
- var yExtremes = currentChart.yAxis[0].getExtremes();
- var ydiff = 1.0 * (lastY - e.pageY) * (yExtremes.max - yExtremes.min) / chartHeight;
- currentChart.yAxis[0].setExtremes(yExtremes.min - ydiff, yExtremes.max - ydiff);
- }
- }
- lastX = e.pageX;
- lastY = e.pageY;
- });
-}
-
$(document).ready(function() {
var cursorMode = ($("input[name='mode']:checked").val() == 'edit') ? 'crosshair' : 'pointer';
var currentChart = null;