1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-31 10:54:46 +03:00

Merge pull request #14137 from shucon/dgn_bound

Tables stop at border
This commit is contained in:
Maurício Meneghini Fauth
2018-04-23 22:49:28 -03:00
committed by GitHub

View File

@@ -155,6 +155,11 @@ function MouseMove (e) {
new_y = parseInt(new_y / grid_size) * grid_size;
}
if (new_x < 0) {
new_x = 0;
} else if (new_y < 0) {
new_y = 0;
}
$cur_click.css('left', new_x + 'px');
$cur_click.css('top', new_y + 'px');
} else if (layer_menu_cur_click) {