hmm, third post is the charm, I swear.
You can only create the mousewheel handler after the treemap has been fully
rendered. So the code should be
function drawChart(){
//...
// Create the chart here
// ....
// Add a mousewheel handler when the chart has been drawn
google.visualization.events.addListener(tree, 'ready', function(){
document.getElementById('chart_div').onmousewheel = function(e){
if ("wheelDelta" in e) if (e.wheelDelta<0) return; // Only consider
scrolling in one direction
if (tree) tree.goUpAndDraw();
}
});
} // createChart()
-r
On Friday, June 17, 2011 7:47:16 PM UTC+10, MarkC wrote:
>
> I have set up a treemap, and its working fine on a desktop / laptop.
>
> However, the standard right mouse navigation 'up' the treemap doesn't
> work on an iPad when either double-tapping OR tapping and holding.
>
> Has anyone worked out a way around this?
>
> Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/ltC9yq0oTq0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.