Skip to content

Commit

Permalink
fix: Init mouse cursor at the proper starting position (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Feb 20, 2023
1 parent 4a1930c commit 67d10e0
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,12 @@ + (NSString *)actionName
error:(NSError **)error
{
if (nil == eventPath) {
XCPointerEventPath *result = [[XCPointerEventPath alloc] initForMouseEvents];
[result moveMouseToPoint:self.atPosition
atOffset:FBMillisToSeconds(self.offset)
duration:FBMillisToSeconds(self.duration)];
XCPointerEventPath *result = [[XCPointerEventPath alloc] initForMouseEventsAtLocation:self.atPosition];
if (self.offset > 0 || self.duration > 0) {
[result moveMouseToPoint:self.atPosition
atOffset:FBMillisToSeconds(self.offset)
duration:FBMillisToSeconds(self.duration)];
}
return @[result];
}

Expand Down

0 comments on commit 67d10e0

Please sign in to comment.