From 96e1bb2a8d842dc37e4982a273a5bde48f6944c3 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Mon, 25 Jun 2012 16:37:06 -0700 Subject: Fix for IKNINJA-1615: Enable mouse up event on top of the user document scrollbar Chrome has a bug where mouse up does not fire when the mouse is released on top of a scrollbar. To work around this issue, I temporary increase the canvas to cover the scrollbar when drawing and then shrink it back on mouse up. Signed-off-by: Valerio Virgillito --- js/mediators/mouse-mediator.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100755 js/mediators/mouse-mediator.js (limited to 'js/mediators') diff --git a/js/mediators/mouse-mediator.js b/js/mediators/mouse-mediator.js deleted file mode 100755 index 4d1fb62a..00000000 --- a/js/mediators/mouse-mediator.js +++ /dev/null @@ -1,31 +0,0 @@ -/* -This file contains proprietary software owned by Motorola Mobility, Inc.
-No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
-(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. -
*/ - -var Montage = require("montage/core/core").Montage, - Component = require("montage/ui/component").Component; - -exports.MouseMediator = Montage.create(Component, { - hasTemplate: { - value: false - }, - - deserializedFromTemplate: { - value: function() { - document.addEventListener("mouseup", this, false); - } - }, - - handleMouseup: { - value: function(event) { - - if(event._event.target.id !== "drawingCanvas") { - NJevent( "appMouseUp"); - } - - return true; - } - } -}); -- cgit v1.2.3