306cca930f
The x/y-coordinates are floats instead of integers like one might expect. The current approach rounds both the old and the new coordinates in order to do integer comparison. However, rounding each coordinate individually causes too much loss of precision because, depending on the decimal value, they are either rounded up or down which causes intermittent off-by-one errors. This commit fixes the problem by comparing coordinate differences instead of the coordinates themselves. The precision loss is avoided by subtracting the old from the new coordinate as-is and only rounding the final result. |
||
---|---|---|
.. | ||
accessibility_spec.js | ||
annotation_spec.js | ||
copy_paste_spec.js | ||
find_spec.js | ||
freetext_editor_spec.js | ||
ink_editor_spec.js | ||
scripting_spec.js | ||
stamp_editor_spec.js | ||
test_utils.js |