views:

119

answers:

2

Consider the following example code: http://code.google.com/apis/maps/documentation/javascript/examples/streetview-simple.html

I can do scrollwheel: false on a mapOptions to disable mouse wheel zoom. The feature is not implemented on the streetview panoramaOptions.

In Chrome, I can safely disable mouse wheel zoom on the streetview simply by.

$('#pano *').bind('mousewheel', function(){
    return false;
});

However this does not work in elsewhere. Please help me get it working in top 3-5 browsers?

A: 

According to Subgurim.net, this is how to do it;

  [powerscript -  other event]
CONSTANT integer WM_MOUSEWHEEL = 522
IF message.number = WM_MOUSEWHEEL AND & KeyDown (KeyControl!) THEN
   message.processed = TRUE
   RETURN 1
END IF

I realise that you are using Javascript, and this is a VB example, but hopefully it helps.

Johnny DropTables
That is not very useful :(
Frank Malina
+1  A: 

There is now a confirmed feature request with Gmaps API issues http://code.google.com/p/gmaps-api-issues/issues/detail?id=2557. Let's hope Google's engineers will look into it when they get trough more important bugs. I hate to hold my breath, but I'll park this for now.

Frank Malina