mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Content layers aren't hidden while mouse is down on the scrollbar
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9162 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
db57e428cc
commit
85cc449e1d
1 changed files with 7 additions and 4 deletions
|
|
@ -361,10 +361,13 @@ $.fn.xeContentToggler = function(){
|
|||
.unbind('mousedown.tc keydown.tc')
|
||||
.bind('mousedown.tc keydown.tc',
|
||||
function(event){
|
||||
if(event && (
|
||||
(event.type == 'keydown' && event.which != ESC) ||
|
||||
(event.type == 'mousedown' && ($(event.target).is('.tgAnchor,.tgContent') || $layer.has(event.target)[0]))
|
||||
)) return true;
|
||||
if(event) {
|
||||
if(event.type == 'keydown' && event.which != ESC) return true;
|
||||
if(event.type == 'mousedown') {
|
||||
var $t = $(event.target);
|
||||
if($t.is('html,.tgAnchor,.tgContent') || $layer.has($t).length) return true;
|
||||
}
|
||||
}
|
||||
|
||||
$this.trigger('close.tc');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue