Commit 5a0dce31 by Jonathan Thomas

Reduce left side of click target. So left has 25% and right has 75% of the hit…

Reduce left side of click target. So left has 25% and right has 75% of the hit target. Make it easier for users to continue reading.
parent 72b22a24
Pipeline #11995 passed with stage
in 20 seconds
......@@ -347,7 +347,9 @@ public class ClickHandler {
if (relY > 0.70 * height) {
return "TOP";
} else {
return relX < 0 ? "LEFT" : "RIGHT"; // Determine if on the left or right half
// Determine left or right (0 is center)
// Offset this to give the left a smaller target (going backwards is less common)
return relX < -0.5 ? "LEFT" : "RIGHT";
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment