[Phpfreechat-svn] SF.net SVN: phpfreechat: [598] trunk/themes/default/templates/pfcclient.js.tpl.ph
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-16 14:20:46
|
Revision: 598 Author: kerphi Date: 2006-06-16 07:20:29 -0700 (Fri, 16 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=598&view=rev Log Message: ----------- Bug fix: when clicking on the chat window to give focus to the input zone, ignore other button than left button. Modified Paths: -------------- trunk/themes/default/templates/pfcclient.js.tpl.php Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-16 14:11:49 UTC (rev 597) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-16 14:20:29 UTC (rev 598) @@ -568,13 +568,15 @@ }, callbackContainer_OnMousedown: function(evt) { - this.isdraging = false; + if (evt.button == 0) + this.isdraging = false; }, callbackContainer_OnMouseup: function(evt) { - if (!this.isdraging) - if (this.el_words && !this.minmax_status) - this.el_words.focus(); + if (evt.button == 0) + if (!this.isdraging) + if (this.el_words && !this.minmax_status) + this.el_words.focus(); }, /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |