javascript - In D3's zoom behavior, bubble the mousewheel event if maximally zoomed out -


i'm using d3's zoom behavior on large world map.

var zoom = d3.behavior.zoom().scaleextent([1, 100]); 

it works great, providing natural zoom functionality , disabling usual scroll activity 1 expects mousewheel event, should.

however, when map takes whole screen, worry users frustrated if try scroll down using mouse wheel when map zoomed way out. there way bubble behavior in circumstance?

a example way scrollable div on page scroll down when mouse wheel used on top of it. when reaches bottom, page resumes scrolling down.

i don't know lot event bubbling, see d3 zoom behavior called d3.event.preventdefault().


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -