Skip to content

Commit

Permalink
lowered the similarity
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurKun21 committed Apr 6, 2024
1 parent fb5ea0d commit 981f16f
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,19 @@ class PreferredSupportSelection @Inject constructor(
var movedSrollBar = false
var bottomScrollbar = false
useSameSnapIn {
topScrollbar = images[Images.SupportScrollBarTop] in locations.support.topScrollbarRegion
topScrollbar = locations.support.topScrollbarRegion.exists(
images[Images.SupportScrollBarTop],
similarity = 0.7
)
if (!topScrollbar) {
movedSrollBar = images[Images.SupportScrollBarMoved] in locations.support.topScrollbarRegion
bottomScrollbar = images[Images.SupportScrollBarBottom] in
locations.support.bottomScrollbarRegion
movedSrollBar = locations.support.topScrollbarRegion.exists(
images[Images.SupportScrollBarMoved],
similarity = 0.7
)
bottomScrollbar = locations.support.bottomScrollbarRegion.exists(
images[Images.SupportScrollBarBottom],
similarity = 0.7
)
}
}
when {
Expand Down

0 comments on commit 981f16f

Please sign in to comment.