Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] mouse pointer/icon change on label hover #294

Closed
tbouffard opened this issue Jun 9, 2020 · 5 comments · Fixed by #1345
Closed

[BUG] mouse pointer/icon change on label hover #294

tbouffard opened this issue Jun 9, 2020 · 5 comments · Fixed by #1345
Labels
BPMN rendering Something about the way the lib is rendering BPMN elements bug Something isn't working mxgraph integration Something involving mxGraph (be aware of EOL)
Milestone

Comments

@tbouffard
Copy link
Member

tbouffard commented Jun 9, 2020

Describe the bug
The mouse pointer changes when hovering on label (shape or edge): it displays a text edition pointer whereas labels are not editable.

To Reproduce
See screenshots. Can be reproduced at least with versions 0.1.1 to 0.1.5 (master branch 171cbcf)

Expected behavior
The mouse icon shouldn't show a text edition icon as labels are not editable, nor selectable.
This gives wrong direction to user letting him/her think the label is editable.

Screenshots
Portion of the B.2.0.bpmn file from BPMN-MIWG rendered with version 0.1.4
mouse_pointer_edition_icon_on_label_hover
.

Desktop

  • OS: Ubuntu 18.04
  • Browser: Firefox 77.0.1 / Chrome 83.0.4103.97 (Official Build 64 bits)

Additional context
This may be the default mxGraph behaviour, some configuration is already setup to avoid label edition. Tests on vanilla mxGraph may be conducted to check if configuration can solve the issue.

@tbouffard tbouffard added bug Something isn't working BPMN rendering Something about the way the lib is rendering BPMN elements labels Jun 9, 2020
@tbouffard tbouffard added this to the BPMN rendering improvements milestone Aug 3, 2020
@tbouffard
Copy link
Member Author

tbouffard commented Aug 11, 2020

May be fixed by a mxgraph upgrade.
See process-analytics/mxgraph2@1364dcd (not released at the time of writing, latest is 4.2.0 and doesn't contain this change)

@tbouffard
Copy link
Member Author

tbouffard commented Nov 30, 2020

@tbouffard
Copy link
Member Author

tbouffard commented Jun 1, 2021

https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/0.16.0/examples/diagram-navigation/diagram-navigation/index.html

The text cursor is replaced by a pointer cursor after a pan

cursor_after_pan

After zoom, we still see the text cursor

cursor_after_zoom

@tbouffard
Copy link
Member Author

tbouffard commented Jun 1, 2021

Explanations about the cursor we see after panning

Original code

<div id="bpmn-container" class="bpmn-container">

Before pan

<div id="bpmn-container" class="bpmn-container" style="position: relative; touch-action: none;">

The style elements are set by mxGraph at initialization.

After pan

<div id="bpmn-container" class="bpmn-container"
	 style="position: relative; touch-action: none; cursor: default;">

After panning, the default cursor is set by bpmn-visualization, see #815.

@tbouffard
Copy link
Member Author

tbouffard commented Jun 1, 2021

Possible fix

In the bpmn container html element, we could set the cursor to default at the initialization (as we do after panning).
mxGraph examples don't suffer from the issue. Most of them set the cursor to default in the style property of the container holding the graph directly in the html source code.

Other resources
shape setting the cursor. We may decide to find a way to force the default cursor on text generated by mxgraph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN rendering Something about the way the lib is rendering BPMN elements bug Something isn't working mxgraph integration Something involving mxGraph (be aware of EOL)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant