question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] mouse pointer/icon change on label hover

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tbouffardcommented, 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.

0reactions
tbouffardcommented, 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

While hovering over a label, mouse pointer changes to hand
Note that changing the cursor will not necessarily mean the element won't respond to being clicked. If this doesn't solve your problem, please ......
Read more >
Solved: How to change mouse cursor from the "arrow" pointe...
No, you cannot make the mouse cursor change to a hand when hovering over a label. The workaround is to place icon or...
Read more >
Change cursor to pointer when hovering over a label in ...
I'd like the cursor to change to a pointer instead of the text insertion cursor because I have a click event setup using...
Read more >
Change mouse cursor hover a label - DevExpress Support
How do I change the cursor icon to go hover a label layout control.
Read more >
How to Change Cursor on Hover in CSS - W3docs
If you want to change a mouse pointer into a hand pointer when hovering over a list item, you can set a class...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found