(delta)
| 1551 | } |
| 1552 | |
| 1553 | function correctDeltaX (delta) { |
| 1554 | let aspectRatio = canvas.width / canvas.height; |
| 1555 | if (aspectRatio < 1) delta *= aspectRatio; |
| 1556 | return delta; |
| 1557 | } |
| 1558 | |
| 1559 | function correctDeltaY (delta) { |
| 1560 | let aspectRatio = canvas.width / canvas.height; |
no outgoing calls
no test coverage detected