Results 1 to 7 of 7

Thread: Simple Image Panner using mousewheel/mouse scroll

  1. #1
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Simple Image Panner using mousewheel/mouse scroll

    1) Script Title: Simple Image Panner and Zoomer v1.1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...magepanner.htm

    3) Describe problem: Is it possible to implement mousewheel or mouse scroll to zoom image panner.

    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Possible, yes. Will someone write it for you, perhaps. First look at:

    http://www.dynamicdrive.com/dynamici...agemagnify.htm

    and:

    http://www.dynamicdrive.com/dynamici...owerzoomer.htm

    and:

    http://www.dynamicdrive.com/dynamici...uredzoomer.htm

    I know none of these is exactly what you're asking for, but perhaps you might like one of them even better. If so, it will save someone a lot of work adapting the Simple Image Panner and Zoomer to work with the mouse.

    BTW, using the mouse will potentially limit the script. As it is now, it will probably work on most browsers, including mobile/touch devices. If you involve the mouse wheel, unless there is a fallback to the current 'click on icons' methods for zoom in/out, most if not all mobile/touch devices will not be able to use it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for a quick response. Yeah your right, it takes a lot of work to implement the mouse motion instead of clicking and might not work at all browser. Might only need to work on Chrome

  4. #4
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Would be possible, instead of using mouse wheel to zoom image implement image zoom with slider

  5. #5
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

  6. #6
    Join Date
    Jul 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot Vic. However, i got an error "addEventListener" when I implement with jquery. How to fixed this?

  7. #7
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    when I implement with jquery
    I do not understand, the script does not use jquery

    I have tested with jquery on the page with no errors

    please post a link to the problem page
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

Similar Threads

  1. Simple Image Panner with coordinates
    By iceman_16 in forum JavaScript
    Replies: 3
    Last Post: 07-11-2013, 03:37 AM
  2. Simple Image Panner and Zoomer v1.1
    By quadrant in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-03-2013, 11:19 AM
  3. Replies: 1
    Last Post: 06-12-2012, 08:31 PM
  4. Simple Image Panner and Zoomer
    By toritobravo in forum Dynamic Drive scripts help
    Replies: 8
    Last Post: 11-10-2011, 10:51 AM
  5. Simple Image Panner & Zoomer
    By anand in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-26-2010, 08:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •