pisi / Reel

The premier 360° solution for jQuery.
http://reel360.org
MIT License
690 stars 210 forks source link

Making rows/tiers the same calculation as frames/fractions for panorama images #304

Open maen007 opened 8 years ago

maen007 commented 8 years ago

Hi @all, as the title suggests, I want to create an extension for reel. I need this for panorama images so that that calculation of the background height and the event behaviour works the same as the width calculation.

But first things first: I'm new in programming JS and fighting through this code since 3 days (which is very well documented, thx for that!).

My goal is to have an extension, so that when I give an additional class (e.g. panoramic) to the reel class in img, than the scan function realizes that a new method gets called to avoid rows, or set rows to 1.

Then the calculated height from jQuery is the measure to center the height and the mouse or touch device behaves exactly like it does with width right now.

Although I'm debugging this code since a lot of hours I'm not clear where the calculation of height is done!??? So could anybody support me by giving me some hints? And yes, this shall be responsive too, so a lot to learn, I know.

Thx in advance

maen