Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions centrallix-os/sys/js/htdrv_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2752,7 +2752,8 @@ function pg_mousemove(e)
pg_tipinfo.x = e.pageX;
pg_tipinfo.y = e.pageY;
}
if (pg_checkmodal(ly)) return EVENT_HALT | EVENT_PREVENT_DEFAULT_ACTION;
// A window drag must keep tracking the cursor when it moves off the modal.
if (pg_checkmodal(ly) && !window.wn_current) return EVENT_HALT | EVENT_PREVENT_DEFAULT_ACTION;
/*if (pg_modallayer)
{
if (!pg_isinlayer(pg_modallayer, ly)) return EVENT_HALT | EVENT_PREVENT_DEFAULT_ACTION;
Expand Down Expand Up @@ -2880,7 +2881,8 @@ function pg_mouseup(e)
{
var ly = e.layer;
if (ly.mainlayer) ly = ly.mainlayer;
if (pg_checkmodal(ly)) return EVENT_HALT | EVENT_PREVENT_DEFAULT_ACTION;
// A window drag must be able to terminate when released off the modal.
if (pg_checkmodal(ly) && !window.wn_current) return EVENT_HALT | EVENT_PREVENT_DEFAULT_ACTION;
/*if (pg_modallayer)
{
if (!pg_isinlayer(pg_modallayer, ly)) return EVENT_HALT | EVENT_ALLOW_DEFAULT_ACTION;
Expand Down
4 changes: 2 additions & 2 deletions centrallix-os/sys/js/htdrv_window.js
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ function wn_mousedown(e)
{
if (e.target.name == 'close')
pg_set(e.target,'src','/sys/images/02bigclose.gif');
else if ((e.mainlayer.has_titlebar && cx__capabilities.Dom0NS && e.pageY < e.mainlayer.pageY + 24) ||
(cx__capabilities.Dom1HTML && e.layer.subkind == 'titlebar' ))
else if (e.which == 1 && ((e.mainlayer.has_titlebar && cx__capabilities.Dom0NS && e.pageY < e.mainlayer.pageY + 24) ||
(cx__capabilities.Dom1HTML && e.layer.subkind == 'titlebar' )))
{
wn_current = e.mainlayer;
wn_msx = e.pageX;
Expand Down