Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3da8b69

Browse files
committed
fix translation rejection bug
1 parent 95f64e5 commit 3da8b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/layers/layer_state_stack.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void MutatorContext::applyBackdropFilter(
164164
}
165165

166166
void MutatorContext::translate(SkScalar tx, SkScalar ty) {
167-
if (!(tx == 0 || ty == 0)) {
167+
if (!(tx == 0 && ty == 0)) {
168168
layer_state_stack_->maybe_save_layer_for_transform();
169169
layer_state_stack_->push_translate(tx, ty);
170170
}

0 commit comments

Comments
 (0)