From 4c2306d2a5c906ccebe1ed551e5fdb9b11bc3a1d Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Fri, 2 Aug 2024 01:32:52 +0200 Subject: [PATCH] 48calc.org: Fix mouse click position Fix handling of mouse click position. The coordinates were computed relative to the wrong dimensions, so the buttons were all the more unreliable the more they were at the bottom and to the right. Fixes: #1096 Signed-off-by: Christophe de Dinechin --- wasm/index.html | 589 ++++++++++++++++++++++-------------------------- 1 file changed, 264 insertions(+), 325 deletions(-) diff --git a/wasm/index.html b/wasm/index.html index cf590356..3f50752b 100644 --- a/wasm/index.html +++ b/wasm/index.html @@ -129,72 +129,6 @@ - -
-

Try this: Plotting a function

-

- Try the following key sequence, where you need to hit the Shift - key as a separate key, and observe what happens with each key: -

-

- - - - - - - - - - - - - - - - - - - - - - - - -
Key to typeWhat happens
F Enter expression
Shift Left Shift
ENTER ALPHA mode
X Enter variable name X
ENTER Put X on the stack
ENTER Duplicate X
3 Enter number 3
. 3.
4 3.4
2 3.42
* Put 3.42 times X on stack
J Compute sin(3.42·X)
M Swap stack levels 1 and 2
K Compute cos(X)
/ Compute sin(3.42·X)/cos(X)
Shift Left shift
N Select MODES menu
F2 Select Radians mode
Shift Left Shift
Shift Right Shift
O PLOT menu
F1 Draw function
-

- -

Try this: Computing 200 digits of pi

-

- Try the following key sequence, where you need to hit the Shift - key as a separate key, and observe what happens with each key: -

-

- - - - - - - - - - - - - - - - - - - - - - -
Key to typeWhat happens
Shift Left Shift
N MODES menu
F2 RADIANS mode
Shift Left Shift
O DISP menu
2 Enter number 2
0 20
0 200
F6 200-digit precision
Shift Left Shift
M Last Arg (Recall 200)
F5 200 significant digits shown
1 Enter number 1
Shift Left Shift
L Compute arc-tangent of 1
4 Enter number 4
* Compute pi
Shift Left Shift
. SHOW function (show full screen)
-

-
@@ -237,292 +171,297 @@