updated CHANGELOG - refs #211 #222
Showing
2 changed files
with
7 additions
and
11 deletions
... | @@ -11,6 +11,7 @@ XXXX-XX-XX, v1.0.0 | ... | @@ -11,6 +11,7 @@ XXXX-XX-XX, v1.0.0 |
11 | - fixed [#204](https://github.com/n1k0/casperjs/pull/204) Fix for when the url is changed via javascript | 11 | - fixed [#204](https://github.com/n1k0/casperjs/pull/204) Fix for when the url is changed via javascript |
12 | - fixed [#236](https://github.com/n1k0/casperjs/issues/236) - Casper.exit return `this` after calling `phantom.exit()` that may caused PhantomJS to hang | 12 | - fixed [#236](https://github.com/n1k0/casperjs/issues/236) - Casper.exit return `this` after calling `phantom.exit()` that may caused PhantomJS to hang |
13 | - fixed [#231](https://github.com/n1k0/casperjs/pull/231) - added `--pre` and `--post` options to the `casperjs test` command to load test files before and after the execution of testsuite | 13 | - fixed [#231](https://github.com/n1k0/casperjs/pull/231) - added `--pre` and `--post` options to the `casperjs test` command to load test files before and after the execution of testsuite |
14 | - fixed [#222](https://github.com/n1k0/casperjs/pull/222) & [#211](https://github.com/n1k0/casperjs/issues/211) - Change mouse event to include an X + Y value for click position | ||
14 | - added [`ClientUtils.getDocumentHeight()`](http://casperjs.org/api.html#clientutils.getDocumentHeight) | 15 | - added [`ClientUtils.getDocumentHeight()`](http://casperjs.org/api.html#clientutils.getDocumentHeight) |
15 | - added a `--no-colors` option to the `casper test` command to skip output coloration | 16 | - added a `--no-colors` option to the `casper test` command to skip output coloration |
16 | 17 | ... | ... |
... | @@ -423,18 +423,13 @@ | ... | @@ -423,18 +423,13 @@ |
423 | } | 423 | } |
424 | try { | 424 | try { |
425 | var evt = document.createEvent("MouseEvents"); | 425 | var evt = document.createEvent("MouseEvents"); |
426 | 426 | var center_x = 1, center_y = 1; | |
427 | try { | 427 | try { |
428 | var pos = elem.getBoundingClientRect(), | 428 | var pos = elem.getBoundingClientRect(); |
429 | center_x = Math.floor((pos.left + pos.right) / 2), | 429 | center_x = Math.floor((pos.left + pos.right) / 2), |
430 | center_y = Math.floor((pos.top + pos.bottom) / 2); | 430 | center_y = Math.floor((pos.top + pos.bottom) / 2); |
431 | } catch(e) { | 431 | } catch(e) {} |
432 | var center_x = 1, center_y = 1; | ||
433 | } | ||
434 | |||
435 | evt.initMouseEvent(type, true, true, window, 1, 1, 1, center_x, center_y, false, false, false, false, 0, elem); | 432 | evt.initMouseEvent(type, true, true, window, 1, 1, 1, center_x, center_y, false, false, false, false, 0, elem); |
436 | |||
437 | |||
438 | // dispatchEvent return value is false if at least one of the event | 433 | // dispatchEvent return value is false if at least one of the event |
439 | // handlers which handled this event called preventDefault; | 434 | // handlers which handled this event called preventDefault; |
440 | // so we cannot returns this results as it cannot accurately informs on the status | 435 | // so we cannot returns this results as it cannot accurately informs on the status | ... | ... |
-
Please register or sign in to post a comment