Chrome-style cursors for mouse scrolling with arrows showing the exact

scrolling direction
This commit is contained in:
Branislav Stojkovic
2019-01-17 10:45:31 +01:00
parent 46f8506c39
commit 9757e81500
3 changed files with 5 additions and 1 deletions
@@ -164,7 +164,7 @@ public class CanvasPlugin implements IPlugIn, ClipboardOwner {
@Override
public void run() {
if (plugInPort.getNewComponentTypeSlot() == null && (e.isPopupTrigger() || pressedEvent.isPopupTrigger())) {
if (plugInPort.getNewComponentTypeSlot() == null && (e.isPopupTrigger() || (pressedEvent != null && pressedEvent.isPopupTrigger()))) {
// Enable actions.
boolean enabled = !plugInPort.getSelectedComponents().isEmpty();
getCutAction().setEnabled(enabled);