Kappa-Dev / KappaTools

Tool suite for kappa models. Documentation and binaries can be found in the release section. Try it online at
http://kappalanguage.org/
GNU Lesser General Public License v3.0
113 stars 41 forks source link

Snapshot cannot be visualized on tablets #564

Closed jkrivine closed 5 years ago

jkrivine commented 5 years ago

Double clicking on the snapshot visualizer does not trigger the opening of the graph window on IPAD.

hmedina commented 5 years ago

Single tap on iOS triggers the on-hover action, double tap triggers the click action (source). There doesn't seem to be a tap arity that would trigger the double click action (maybe four taps? If only iOS behaved like Windows, where a tap is a click :p).

That said, as the snapshot viewer in the GUI has no usage for the single click, why do we have the double click? Could we not drop double click and just use the single-click? I.e. single-click on a patch to open its level2 network, click on the "back to root" to go back to the patch layout.

jkrivine commented 5 years ago

Yes I support the single click to expand the graph view of snapshots (if that can help using the editor on iPads)

Le 16 avril 2019 21:26:57 GMT+02:00, Hector Medina notifications@github.com a écrit :

Single tap on iOS triggers the on-hover action, double tap triggers the click action (source). There doesn't seem to be a tap arity that would trigger the double click action (maybe four taps? If only iOS behaved like Windows, where a tap is a click :p).

That said, as the snapshot viewer in the GUI has no usage for the single click, why do we have the double click? Could we not drop double click and just use the single-click? I.e. single-click on a patch to open its level2 network, click on the "back to root" to go back to the patch layout.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/Kappa-Dev/KaSim/issues/564#issuecomment-483810722

-- Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.

pirbo commented 5 years ago

I don't give a shit about iPads!

Serious answer: There is a usage of single click on a specie rectangle, it makes the "mouse over layout" (the rectangle is darker) persistant. This was an explicit request from Walter and I "every rendering you can obtain with a mouse over must be exportable" (the easiest way to achieve it is by making it persistant in a way or an other so that you can go up to the export button and click on it...)

Despite my trolling, tablets are important but the correct way to go seems a bit painful (after only 5 minutes of googling, there may be easier path). You have to recognise the fact that you deal with a tablet thanks to the touch html event family but they still fire the mouse event family on which you have to preventDefault under these circonstances...

jkrivine commented 5 years ago

Le 17 avril 2019 10:55:08 GMT+02:00, Pierre Boutillier notifications@github.com a écrit :

I don't give a shit about iPads!

If you don't have an iPad at 40 years old you haven't succeeded in your life.

Serious answer: There is a usage of single click on a specie rectangle, it makes the "mouse over layout" (the rectangle is darker) persistant. This was an explicit request from Walter and I "every rendering you can obtain with a mouse over must be exportable" (the easiest way to achieve it is by making it persistant in a way or an other so that you can go up to the export button and click on it...)

Despite my trolling, tablets are important but the correct way to go seems a bit painful (after only 5 minutes of googling, there may be easier path). You have to recognise the fact that you deal with a tablet thanks to the touch html event family but they still fire the mouse event family on which you have to preventDefault under these circonstances...

-- Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.

hmedina commented 5 years ago

While you're at it:

  1. count mode should state the count of entity hoverd/clicked/darkened (currently, it does)
  2. size mode should state the size of entity (currently, it states just the count)
  3. mass mode should state both count & size of entity (currently, it states just the count)