We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ccc8f1 commit 3564aa9Copy full SHA for 3564aa9
lib/screen.class.ts
@@ -105,10 +105,16 @@ export class Screen {
105
for (const hook of possibleHooks) {
106
await hook(matchResult);
107
}
108
+ const resultRegion = new Region(
109
+ searchRegion.left + matchResult.location.left,
110
+ searchRegion.top + matchResult.location.top,
111
+ matchResult.location.width,
112
+ matchResult.location.height
113
+ )
114
if (this.config.autoHighlight) {
- resolve(this.highlight(matchResult.location));
115
+ resolve(this.highlight(resultRegion));
116
} else {
- resolve(matchResult.location);
117
+ resolve(resultRegion);
118
119
120
reject(
0 commit comments