atlas-viewer / atlas

Main repository for Atlas viewer
https://atlas-viewer-storybook.netlify.app/
MIT License
5 stars 3 forks source link

Allow for images with a static preset to scroll #27

Closed stephenwf closed 6 months ago

stephenwf commented 6 months ago

The touch-action: none css property is set on the .atlas class indescriminantly, causing it to consume all touch events. For cases where Atlas is intended to ‘own’ those events that’s fine. But, in the static mode, the window/document should own those events.

By exposing the render preset as a class, we can use that as a selector, and thus return the touch-events property to the default by setting it to inherit

cc @abrin

codesandbox-ci[bot] commented 6 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

abrin commented 6 months ago

@stephenwf thanks! I actually opened a PR here: https://github.com/atlas-viewer/atlas/pull/26 if you want to close this one

stephenwf commented 6 months ago

Sorry!