Menu

#108 PushPanel fix for NS on Mac

open
nobody
5
2001-04-11
2001-04-11
Anonymous
No

Below is the code that I used to fix the PushPanel for
Netscape on the Macintosh platform. Basically, all I
did was add the "e.cancelBrowserEvent();" call to both
the onmousedown event listeners.

While trying to debug this, I discovered that when the
mousedown event is fired on NS on the Mac, it
immediately fires the onmouseup event, therefore,
cancelling any scolling functions.

FYI, the debugging of this was very painful. I'm am
however relieved to have found a solution.

Enjoy!

var button0Listener = new EventListener(this);
button0Listener.onmousedown = function(e) {
e.cancelBrowserEvent();
var o = e.getTarget();
if (o.vertical) o.scrollUp();
else o.scrollLeft();
};
var button1Listener = new EventListener(this);
button1Listener.onmousedown = function(e) {
e.cancelBrowserEvent();
var o = e.getTarget();
if (o.vertical) o.scrollDown();
else o.scrollRight();
};

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.