@@ -268,17 +268,6 @@ SyntheticMouse.prototype.down = function(coordinates) {
268
268
var doc = goog . dom . getOwnerDocument ( element ) ;
269
269
this . viewPortOffset = goog . dom . getDomHelper ( doc ) . getDocumentScroll ( ) ;
270
270
271
- // TODO(simon): This implementation isn't good enough. Again
272
- // Defaults to left mouse button, which is right.
273
- //this.buttonDown = bot.Mouse.Button.LEFT;
274
- //var botCoords = {
275
- // 'clientX': coordinates['x'] + pos.x,
276
- // 'clientY': coordinates['y'] + pos.y,
277
- // 'button': bot.Mouse.Button.LEFT
278
- //};
279
- //this.addEventModifierKeys(botCoords);
280
- //bot.events.fire(element, bot.events.EventType.MOUSEDOWN, botCoords);
281
-
282
271
this . lastElement = element ;
283
272
284
273
return SyntheticMouse . newResponse ( bot . ErrorCode . SUCCESS , 'ok' ) ;
@@ -292,21 +281,6 @@ SyntheticMouse.prototype.up = function(coordinates) {
292
281
293
282
this . getMouse_ ( ) . releaseButton ( ) ;
294
283
295
- //var doc = goog.dom.getOwnerDocument(element);
296
- //var pos = goog.style.getClientPosition(element);
297
-
298
- // TODO(simon): This implementation isn't good enough. Again
299
- // Defaults to left mouse button, which is the correct one.
300
- //var button = this.buttonDown;
301
- //var botCoords = {
302
- // 'clientX': coordinates['x'] + pos.x,
303
- // 'clientY': coordinates['y'] + pos.y,
304
- // 'button': button
305
- //};
306
- //this.addEventModifierKeys(botCoords);
307
- //bot.events.fire(element, bot.events.EventType.MOUSEMOVE, botCoords);
308
- //bot.events.fire(element, bot.events.EventType.MOUSEUP, botCoords);
309
-
310
284
this . buttonDown = null ;
311
285
this . isButtonPressed = false ;
312
286
this . viewPortOffset . x = 0 ;
0 commit comments