Skip to content

Lock switches in place

Janne Alatalo requested to merge lock-in-place into master
  • Add lock icon into switches right top corner.
  • clicking lock will change lock-icon to black and lock switch position it's release position
    • (click-drag-release to place)
  • switches can be moved after locking in place by grabbing normal switch-icon
    • grading from lock-icon or port icon won't work
  • lock is released by clicking lock-icon
    • cursor have be on top of lock-icon when mouse button is released for this to work

Known bugs:

  • switches can't be placed on top of each others in some casies
  • this happens when you try to drag switch on top of switch that is on higher layer, disabling mouse event that lock switch to place
  • switches won't lock if drag is released outside the canvas
    • no mouse event no locking in place
  • switches won't lock near canvas edges
    • original cause not known
  • switches lose their place after refreshing page
    • sorry no save function implemented (yet?)

Merge request reports