1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/9c4b7f8d2f98/ Changeset: 9c4b7f8d2f98 User: guerler Date: 2013-06-30 09:27:29 Summary: Scratchbook: Improve event handling Affected #: 1 file diff -r d748871f160f9bf1b13df57d34a9f3cf13a9f947 -r 9c4b7f8d2f980ff69a0e7947c9360dd7154c65eb static/scripts/galaxy.frame.js --- a/static/scripts/galaxy.frame.js +++ b/static/scripts/galaxy.frame.js @@ -375,6 +375,9 @@ if (this.event.type !== null) return; + // prevent text selection + e.preventDefault(); + // get frame var frame = this.event_get_frame(e.target); @@ -404,23 +407,29 @@ }, // show/hide panel - event_panel_load: function () + event_panel_load: function (e) { // check if (this.event.type !== null) return; + // prevent text selection + e.preventDefault(); + // load panel this.panel_show_hide(); }, // activate/disable panel - event_panel_active: function () + event_panel_active: function (e) { // check if (this.event.type !== null) return; + // prevent text selection + e.preventDefault(); + // load panel this.panel_active_disable(); }, @@ -432,6 +441,9 @@ if (this.event.type !== null || !this.visible) return; + // prevent text selection + e.preventDefault(); + // get wheel delta var delta = e.originalEvent.detail ? e.originalEvent.detail : e.originalEvent.wheelDelta / -3; @@ -440,23 +452,29 @@ }, // scroll up - event_panel_scroll_up: function() + event_panel_scroll_up: function(e) { // check if (this.event.type !== null) return; + // prevent text selection + e.preventDefault(); + // scroll up this.panel_scroll(-this.options.scroll); }, // scroll down - event_panel_scroll_down: function() + event_panel_scroll_down: function(e) { // check if (this.event.type !== null) return; + // prevent text selection + e.preventDefault(); + // scroll down this.panel_scroll(this.options.scroll); }, @@ -771,6 +789,9 @@ // adds and displays a new frame/window frame_new: function(options) { + // trigger mouse leave + $(document).trigger('mouseleave'); + // validate if (!this.active) { Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.