PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
266 stars 208 forks source link

Make images zoom-able #427

Closed rbeezer closed 2 years ago

rbeezer commented 7 years ago

Make this library available (hosted on a CDN)

http://leafletjs.com/

to make images "zoom-able" like the example here:

https://www.fulcrum.org/concern/file_sets/mw22v5474

Presumably, some attribute (zommable='yes', zoom=<some-initial level>?) would make this available on an image that has lots of fine detail.

Alex-Jordan commented 7 years ago

Zoomable images can be a serious pain if there is also need to scroll up and down a lot on the page. But if zoomable="no" is the default, cool.

rbeezer commented 7 years ago

I don't understand what "serious pain" means in this context.

I have no idea how this library works. "contibutor" project. Not a "developer" project. ;-)

Default would be no.

On 10/31/2016 10:03 PM, Alex Jordan wrote:

Zoomable images can be a serious pain if there is also need to scroll up and down a lot on the page. But if |zoomable="no"| is the default, cool.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/427#issuecomment-257489461, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy2cqcLiwfswQYyCch1jgNISyDdJcE_ks5q5sgpgaJpZM4Klwyw.

Alex-Jordan commented 7 years ago

On a touch pad mouse, you use two fingers to scroll. But you also use two fingers to zoom. Say you want to get to the bottom of a long page from the top. So you scroll and scroll and scroll fast downward, using your two fingers. But when the screen gets to the zoomable object, that functionality takes over. And instead of scrolling more, before you can stop it you zoomed in to the subatomic level on the image.

I think the same issue happens with a mouse wheel button.

Even at your example, place the mouse above (not on) the picture. Then use the two- finger method to scroll down. For me, as soon as the image moves up under the mouse cursor, scrolling stops and zooming begins.

On Mon, Oct 31, 2016 at 11:27 PM, Rob Beezer notifications@github.com wrote:

I don't understand what "serious pain" means in this context.

I have no idea how this library works. "contibutor" project. Not a "developer" project. ;-)

Default would be no.

On 10/31/2016 10:03 PM, Alex Jordan wrote:

Zoomable images can be a serious pain if there is also need to scroll up and down a lot on the page. But if |zoomable="no"| is the default, cool.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/427#issuecomment-257489461, or mute the thread https://github.com/notifications/unsubscribe-auth/ ABy2cqcLiwfswQYyCch1jgNISyDdJcE_ks5q5sgpgaJpZM4Klwyw.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/427#issuecomment-257497978, or mute the thread https://github.com/notifications/unsubscribe-auth/AEg3AO6yITu55cHchajxLRKdBqT7rQcrks5q5tu6gaJpZM4Klwyw .

Alex Jordan Mathematics Instructor Portland Community College

rbeezer commented 7 years ago

Thanks - yes, this annoys me too. Thanks for checking the example.

It'd be nice if the library let you only activate the +/- buttons, but maybe that is not possible. Anyway, I can imagine projects that might really find this useful.

rbeezer commented 7 years ago

A super-high resolution image of the Mandlebrot set (with the right license) could be an excellent (cliche'd) example for the sample article.