@@ -7,7 +7,7 @@ export class ControlBarView {
77			class : 'sqd-control-bar' 
88		} ) ; 
99
10- 		const  resetButton  =  createButton ( Icons . center ,  'Reset' ) ; 
10+ 		const  resetButton  =  createButton ( Icons . center ,  'Reset view ' ) ; 
1111		root . appendChild ( resetButton ) ; 
1212
1313		const  zoomInButton  =  createButton ( Icons . zoomIn ,  'Zoom in' ) ; 
@@ -26,17 +26,17 @@ export class ControlBarView {
2626			root . appendChild ( redoButton ) ; 
2727		} 
2828
29- 		const  moveButton  =  createButton ( Icons . move ,  'Turn on/off drag and drop' ) ; 
30- 		moveButton . classList . add ( 'sqd-disabled' ) ; 
31- 		root . appendChild ( moveButton ) ; 
29+ 		const  disableDragButton  =  createButton ( Icons . move ,  'Turn on/off drag and drop' ) ; 
30+ 		disableDragButton . classList . add ( 'sqd-disabled' ) ; 
31+ 		root . appendChild ( disableDragButton ) ; 
3232
3333		const  deleteButton  =  createButton ( Icons . delete ,  'Delete selected step' ) ; 
3434		deleteButton . classList . add ( 'sqd-delete' ) ; 
3535		deleteButton . classList . add ( 'sqd-hidden' ) ; 
3636		root . appendChild ( deleteButton ) ; 
3737
3838		parent . appendChild ( root ) ; 
39- 		return  new  ControlBarView ( resetButton ,  zoomInButton ,  zoomOutButton ,  undoButton ,  redoButton ,  moveButton ,  deleteButton ) ; 
39+ 		return  new  ControlBarView ( resetButton ,  zoomInButton ,  zoomOutButton ,  undoButton ,  redoButton ,  disableDragButton ,  deleteButton ) ; 
4040	} 
4141
4242	private  constructor ( 
@@ -45,7 +45,7 @@ export class ControlBarView {
4545		private  readonly  zoomOutButton : HTMLElement , 
4646		private  readonly  undoButton : HTMLElement  |  null , 
4747		private  readonly  redoButton : HTMLElement  |  null , 
48- 		private  readonly  moveButton : HTMLElement , 
48+ 		private  readonly  disableDragButton : HTMLElement , 
4949		private  readonly  deleteButton : HTMLElement 
5050	)  { } 
5151
@@ -75,8 +75,8 @@ export class ControlBarView {
7575		bindClick ( this . redoButton ,  handler ) ; 
7676	} 
7777
78- 	public  bindMoveButtonClick ( handler : ( )  =>  void )  { 
79- 		bindClick ( this . moveButton ,  handler ) ; 
78+ 	public  bindDisableDragButtonClick ( handler : ( )  =>  void )  { 
79+ 		bindClick ( this . disableDragButton ,  handler ) ; 
8080	} 
8181
8282	public  bindDeleteButtonClick ( handler : ( )  =>  void )  { 
@@ -87,8 +87,8 @@ export class ControlBarView {
8787		Dom . toggleClass ( this . deleteButton ,  isHidden ,  'sqd-hidden' ) ; 
8888	} 
8989
90- 	public  setIsMoveButtonDisabled ( isDisabled : boolean )  { 
91- 		Dom . toggleClass ( this . moveButton ,  isDisabled ,  'sqd-disabled' ) ; 
90+ 	public  setDisableDragButtonDisabled ( isDisabled : boolean )  { 
91+ 		Dom . toggleClass ( this . disableDragButton ,  isDisabled ,  'sqd-disabled' ) ; 
9292	} 
9393
9494	public  setUndoButtonDisabled ( isDisabled : boolean )  { 
0 commit comments