Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

Not functioning context menu on Cornerstone tools

Open vicOnGit75 opened this issue 6 years ago • 4 comments

Right Click on a drawn tool causes popup of system context menu that either cover tool context menu or displayed side by side with it:

  • Select any procedure
  • select any image -select tool type a and draw a tool ( any type e.g. angle)
  • Right click
    -See behavior described above. Reproduced on https://viewer-dev.ohif.org/

Untitled

vicOnGit75 avatar Jan 31 '20 15:01 vicOnGit75

@vicOnGit75, I also experience this issue when using FireFox. Other core team members have reported that they are unable to reproduce on their machine. This is likely something as simple as preventing the contextmenu event from bubbling when interacting with canvases/viewports.

dannyrb avatar Jan 31 '20 16:01 dannyrb

@dannyrb , I experienced it on my working environment ( Win10,Chrome) after building version from the end of December, positively not having this problem with version from end of October ( sorry for missing exact labels). Regarding the fix- looks like this, but changing element.addEventListener(csTools.EVENTS.MOUSE_CLICK, handleClick,false); in elementEnabledHandler(evt) and adding event.preventDefault(); event.stopPropagation(); in OnRightClick ( both in AppExtension/init.js) didn't help.

vicOnGit75 avatar Jan 31 '20 16:01 vicOnGit75

@dannyrb, we can close this now, right?

arthur-miller avatar Mar 10 '20 14:03 arthur-miller

Appreciate the call-out. Thanks, @arthur-miller. @vicOnGit75, if you have issues with latest, please don't hesitate to report back.

dannyrb avatar Mar 10 '20 15:03 dannyrb