The Higher Education and Research forge

Home My Page Projects Code Snippets Project Openings Développement de WIMS
Summary Activity Forums Tracker Tasks Docs Surveys News SCM Files Listes Sympa

[#12167] tablette et canvasdraw

Date:
2019-10-19 09:36
Priority:
1
State:
Open
Submitted by:
Bernadette Perrin-Riou (bpr)
Assigned to:
Nobody (None)
Hardware:
none
Operating System:
none
Version:
>v4.18
Severity:
none
Resolution:
none
URL:
état:
Open
Summary:
tablette et canvasdraw

Detailed description
draw qui s'appuie sur canvasdraw ne fonctionne
sur tablette ipad ou iphone (safari ou chrome ou firefox) (on ne peut rien tracer)

Dans direct exec
size 400,400
xrange -10,10
yrange -10,10
grid 1,1,grey
linewidth 2
opacity 200,50
userdraw vline,green

ne permet pas de tracer une droite.
Merci à ceux qui ont une telle tablette et savent déboguer dessus d'aider.

Bernadette
Message  ↓
Date: 2019-10-31 11:57
Sender: Bernadette Perrin-Riou

We have tried to put again the "touchend" in the eventlistener, it does not change anything.

Bernadette

Date: 2019-10-28 11:47
Sender: joke evers

If this bug is not limited to "userdraw vline"... but also true for all other userdraw primitives,
it could be caused by the latest change in canvasdraw.c :
the removal of the "touchend" in the eventlistener

this was done as a correction for some strange behaviour, see emails "RE: touchscreen (RE: class 1397) " of monday 19 aug. 2019 14:31

// canvas_div.addEventListener(\"touchend\" ,function(e){ e.preventDefault();user_draw(e.changedTouches[0]);},false);

As I do not own any Apple products, I can not confiirm or debug this
On Android (any browser) it works as expected...

Joke

No related tasks

No attached documents

No changes have been made to this item