mbostock / stack

A presentation library with intuitive, scroll-based navigation.
https://mbostock.github.io/stack/
Other
1.16k stars 163 forks source link

Interaction disabled on Retina MacBook Pro. #2

Closed dsc closed 12 years ago

dsc commented 12 years ago

I don't know if how recent this change is, but this iOS check now returns true for Chrome (I've got 20.0.1180.79):

// Don't do anything fancy for iOS.
if (section.style("display") == "block")
  return;

I looked at stack a few weeks ago, and it worked then. This might be due to a beta channel update, but I can't for the life of me figure out where they moved that information in the Chrome about dialog.

mbostock commented 12 years ago

What OS? I just tested on Version 21.0.1180.75 / Mac OS X 10.8, and it works fine.

dsc commented 12 years ago

10.7.4; new 15" Retina MBP.

mbostock commented 12 years ago

Yeah, the problem is the CSS media query for iPhone 4 now matches the MacBook Retina display.

dsc commented 12 years ago

Ahh -- that is good to know. The point of disabling interaction is that iOS doesn't scroll, yes? (Instead panning the viewport?) Perhaps test if body dimensions match window dimensions?

mbostock commented 12 years ago

This has been fixed.