Author: vjrj_ Date: 2011-11-11 03:57:03 +0100 (Fri, 11 Nov 2011) New Revision: 1601 Modified: trunk/src/main/webapp/others/js/fake-selenium-pointer.js Log: pointer improved Modified: trunk/src/main/webapp/others/js/fake-selenium-pointer.js =================================================================== --- trunk/src/main/webapp/others/js/fake-selenium-pointer.js 2011-11-10 21:26:37 UTC (rev 1600) +++ trunk/src/main/webapp/others/js/fake-selenium-pointer.js 2011-11-11 02:57:03 UTC (rev 1601) @@ -13,7 +13,7 @@ } function kmoveit() { - for (inc = 0; inc <= 1; inc = inc + 0.01) { + for (inc = 0; inc <= 1 && !(k_cur_x == newx && k_cur_y == newy); inc = inc + 0.01) { k_cur_x = Math.round(k_cur_x * (1 - inc) + newx * inc); k_cur_y = Math.round(k_cur_y * (1 - inc) + newy * inc); window.setTimeout('ksetCursorPos(' + k_cur_x + ", " + k_cur_y + ')',