File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/net/itarray/automotion/internal Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 77import net .itarray .automotion .internal .geometry .Rectangle ;
88import net .itarray .automotion .internal .geometry .Scalar ;
99import net .itarray .automotion .internal .geometry .Vector ;
10+ import net .itarray .automotion .internal .properties .ConstantExpression ;
1011import net .itarray .automotion .internal .properties .Context ;
1112import net .itarray .automotion .tools .general .SystemHelper ;
1213import net .itarray .automotion .tools .helpers .TextFinder ;
@@ -176,7 +177,9 @@ private Scalar getOffset(Direction direction, UIElement page) {
176177 }
177178
178179 private boolean hasEqualOppositeOffsets (Direction direction , UIElement page , Context context ) {
179- return getOffset (direction , page ).equals (getOffset (direction .opposite (), page ));
180+ return Expression .equalTo (
181+ new ConstantExpression <>(getOffset (direction , page )),
182+ new ConstantExpression <>(getOffset (direction .opposite (), page ))).evaluateIn (context , direction );
180183 }
181184
182185 private boolean hasSuccessor (Direction direction , UIElement possibleSuccessor ) {
You can’t perform that action at this time.
0 commit comments