Skip to content

Commit

Permalink
Fix cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyBelym committed Jan 20, 2017
1 parent a183432 commit cd8aafa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/client/ui/cursor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ var CursorUI = {
this._createElement();

styleUtils.set(this.cursorElement, {
left: this.x + styleUtils.getScrollLeft(document) - this.pointerOffsetX + 'px',
top: this.y + styleUtils.getScrollTop(document) - this.pointerOffsetY + 'px'
left: this.x - this.pointerOffsetX + 'px',
top: this.y - this.pointerOffsetY + 'px'
});

return Promise.resolve();
Expand Down
2 changes: 1 addition & 1 deletion src/client/ui/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
.cursor {
.sprite-icon;

position: absolute;
.position-fixed();
left: 0;
top: 0;
width: 35px;
Expand Down
2 changes: 1 addition & 1 deletion test/functional/fixtures/regression/gh-1138/test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe.skip('[Regression](GH-1138)', function () {
describe('[Regression](GH-1138)', function () {
it('Test should click on target that has moved during the action', function () {
return runTests('testcafe-fixtures/index.test.js', 'Click on element bound to the right bottom corner');
});
Expand Down

0 comments on commit cd8aafa

Please sign in to comment.