[ka-Map-users] Scroll wheel zoom
David Badke
dbadke at uvic.ca
Thu Apr 13 19:05:39 EDT 2006
I'll take a crack at it, but it will have to wait until next week now...
David
Paul Spencer wrote:
> 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
More information about the ka-Map-users
mailing list