|
Lines 132-137
Link Here
|
| 132 |
this._table._showResizeLine( position ); |
132 |
this._table._showResizeLine( position ); |
| 133 |
this._resizeStartX = evt.getPageX(); |
133 |
this._resizeStartX = evt.getPageX(); |
| 134 |
this.setCapture( true ); |
134 |
this.setCapture( true ); |
|
|
135 |
evt.stopPropagation(); |
| 136 |
evt.preventDefault(); |
| 135 |
} else if( this._moveable ){ |
137 |
} else if( this._moveable ){ |
| 136 |
this._inMove = true; |
138 |
this._inMove = true; |
| 137 |
this.setCapture( true ); |
139 |
this.setCapture( true ); |
|
Lines 140-145
Link Here
|
| 140 |
this._table._unhookColumnMove( this ); |
142 |
this._table._unhookColumnMove( this ); |
| 141 |
this._offsetX = evt.getPageX() - this.getLeft(); |
143 |
this._offsetX = evt.getPageX() - this.getLeft(); |
| 142 |
this._initialLeft = this.getLeft(); |
144 |
this._initialLeft = this.getLeft(); |
|
|
145 |
evt.stopPropagation(); |
| 146 |
evt.preventDefault(); |
| 143 |
} |
147 |
} |
| 144 |
}, |
148 |
}, |
| 145 |
|
149 |
|
|
Lines 152-157
Link Here
|
| 152 |
this._sendResized( newWidth ); |
156 |
this._sendResized( newWidth ); |
| 153 |
this._inResize = false; |
157 |
this._inResize = false; |
| 154 |
this._wasResizeOrMoveEvent = true; |
158 |
this._wasResizeOrMoveEvent = true; |
|
|
159 |
evt.stopPropagation(); |
| 160 |
evt.preventDefault(); |
| 155 |
} else if( this._inMove ) { |
161 |
} else if( this._inMove ) { |
| 156 |
this._inMove = false; |
162 |
this._inMove = false; |
| 157 |
this.setCapture( false ); |
163 |
this.setCapture( false ); |
|
Lines 167-172
Link Here
|
| 167 |
} else { |
173 |
} else { |
| 168 |
this.setLeft( this._initialLeft ); |
174 |
this.setLeft( this._initialLeft ); |
| 169 |
} |
175 |
} |
|
|
176 |
evt.stopPropagation(); |
| 177 |
evt.preventDefault(); |
| 170 |
} |
178 |
} |
| 171 |
}, |
179 |
}, |
| 172 |
|
180 |
|
|
Lines 188-199
Link Here
|
| 188 |
this.getTopLevelWidget().setGlobalCursor( null ); |
196 |
this.getTopLevelWidget().setGlobalCursor( null ); |
| 189 |
} |
197 |
} |
| 190 |
} |
198 |
} |
|
|
199 |
evt.stopPropagation(); |
| 200 |
evt.preventDefault(); |
| 191 |
}, |
201 |
}, |
| 192 |
|
202 |
|
| 193 |
_onMouseOut : function( evt ) { |
203 |
_onMouseOut : function( evt ) { |
| 194 |
this.removeState( org.eclipse.swt.widgets.TableColumn.STATE_MOUSE_OVER ); |
204 |
this.removeState( org.eclipse.swt.widgets.TableColumn.STATE_MOUSE_OVER ); |
| 195 |
if( !this._inResize ) { |
205 |
if( !this._inResize ) { |
| 196 |
this.getTopLevelWidget().setGlobalCursor( null ); |
206 |
this.getTopLevelWidget().setGlobalCursor( null ); |
|
|
207 |
evt.stopPropagation(); |
| 208 |
evt.preventDefault(); |
| 197 |
} |
209 |
} |
| 198 |
}, |
210 |
}, |
| 199 |
|
211 |
|