[ka-Map-users] Scroll wheel zoom
Paul Spencer
pspencer at dmsolutions.ca
Thu Apr 13 18:54:21 EDT 2006
David,
this sounds like a reasonable request ... can you file a bug
(bugzilla.maptools.org) describing how you would like it to work
(i.e. how you would expect it to work if you wanted to call your own
action on scroll)
Cheers
Paul
On 13-Apr-06, at 6:47 PM, David Badke wrote:
> It would be nice if there was a way to disable the default scroll
> wheel action (zoom in/out), or better yet, define one's own action,
> without having to modify kaMap.js or kaTool,js. My test users
> objected to the zooming - they kept doing it by accident - so I had
> to disable it, meaning I changed kaMap.js, which I don't like to
> do. My code is a bit crude: :-[
>
> In kaMap constructor, added:
>
> this.useScrollWheel = true;
>
> Changed kaMap_onmousewheel to:
>
> if ((this.useScrollWheel) && <------------
> (this.kaMap.currentTool)) {
> this.kaMap.currentTool.onmousewheel( e );
> }
>
> In startUp.js myOnLoad added after myKaMap instatiation:
>
> myKaMap.useScrollWheel = false;
>
> This works, but is not ideal. Anyway, any interest in making the
> scroll wheel action optional and/or configurable?
>
> David
>
>
> --
>
> David Badke
> Humanities Computing and Media Center
> University of Victoria, BC, Canada
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the ka-Map-users
mailing list