Mouse wheel control doesn't do anything

Bug #451201 reported by Raphaël Pinson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
JessyInk
Fix Released
Medium
Hannes Hochreiner

Bug Description

From reading jessyInk.js, I see several functions that are supposed to deal with the mouse wheel, like "slideMousewheel(e)", but when I try to use the mouse wheel, it doesn't do anything.

The comments for the functions refer to http://adomas.org/javascript-mouse-wheel/ but this page claims to be obsolete.

I've tried in both Firefox 3.5.5pre (Shiretoko), Arora 0.8.0 and Google Chrome 4.0.221.8, using JessyInk 1.3.1.

Revision history for this message
Raphaël Pinson (raphink) wrote :

OK, I looked into it a bit more... and the functions are not mapped to events, so it's quite obvious that it won't work. I'm working on a patch for that.

Revision history for this message
Raphaël Pinson (raphink) wrote :

For some reason, when using the wheel quite fast, effects don't seem to stack properly (objects don't disappear fully or background doesn't change)

Revision history for this message
Hannes Hochreiner (hannes-hochreiner) wrote :

Raphaël,

thanks a lot for drawing my attention to this problem and thanks for providing a patch. Personally, I only use the mouse for testing (for everything else I use the touch-pad), but I realise that this functionality is important to many people.

I'll try and see, if I can iron out the last small problem you mentioned and then I'll merge your changes into the trunk, so they are included in the next release.

Thanks a lot for your contribution!

Cheers,
Hannes

Changed in jessyink:
status: New → In Progress
importance: Undecided → Medium
milestone: none → 1.4.0
Revision history for this message
Raphaël Pinson (raphink) wrote :

Hi Hannes,

Thanks for answering this bug report. Actually, I was looking into mapping the mouse wheel to a zooming functionality. I've tried zooming with ctrl+wheel which is the usual way to zoom on SVG in e.g. Google Chrome, but it totally messes the presentation with Jessyink. I like the idea that Jessyink allows to implement the functionalities found in Prezi with SVG+Javascript, and I think it would be very nice to be able to zoom just anywhere on the slides and have "on-demand" views by clicking on any object in the SVG (hence bug #451341).

Thanks for your work :-)

Raphaël

Revision history for this message
Hannes Hochreiner (hannes-hochreiner) wrote :

Hi Raphaël,

I think the best way would be to try an implement the zooming as a mouse event handler apart from the JessyInk core script. With the new architecture this should be fairly easy to do. In this way, the behaviour can be offered as an option in the mouse handler Inkscape extension.I think we should create a blueprint for zooming and draging using the mouse and one for zooming into any random object as described in bug #451341.

Cheers,
Hannes

Revision history for this message
Hannes Hochreiner (hannes-hochreiner) wrote :

Just pushed a first implementation of the zooming and dragging features to branch mouse-dragging-zoom. This branch will should fix the original reason for this bug. Furthermore, the first of the two requested features is implemented there. I am still trying to come up with a good way to implement of the second one.

Changed in jessyink:
assignee: nobody → Hannes Hochreiner (hannes-hochreiner)
Changed in jessyink:
status: In Progress → Fix Committed
Revision history for this message
Hannes Hochreiner (hannes-hochreiner) wrote :

Mouse wheel now works for zooming with the new mouse handler. However, I still have to reassign the functionality with the default mouse handler. That's why I put this bug back to "in progress".

Changed in jessyink:
status: Fix Committed → In Progress
milestone: 1.4.0 → 1.5.0
Changed in jessyink:
status: In Progress → Fix Committed
Changed in jessyink:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.