Results 1 to 2 of 2

Thread: PowerZoomer not working with jQuery greater than 1.6.4?

  1. #1
    Join Date
    Apr 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question PowerZoomer not working with jQuery greater than 1.6.4?

    1) Script Title:
    Image Power Zoomer v1.2

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

    3) Describe problem:
    I would like to use the Image Power Zoomer with an actual jquery version greater than 1.9. But the magnification with the mouse wheel doesn't work. Up to jquery 1.6.4 it works fine, but 1.7.0 and above there is an error.
    Is there a new version or what can I do?

  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

    Here, using a plain text editor like Notepad, around line 85 in the script, add the highlighted:

    Code:
    		$magnifier.outer.bind(ddpowerzoomer.mousewheelevt, function(e){ //bind mousewheel event to magnifier
    			e = e.originalEvent;
    			if (ddpowerzoomer.activeimage){
    				var delta=e.detail? e.detail*(-120) : e.wheelDelta //delta returns +120 when wheel is scrolled up, -120 when scrolled down
    				if (delta<=-120){ //zoom out
    					ddpowerzoomer.movemagnifier(e, false, "out")
    				}
    				else{ //zoom in
    					ddpowerzoomer.movemagnifier(e, false, "in")
    				}
    				e.preventDefault()
    			}
    		})
    Save and use that version.
    - John
    ________________________

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

Similar Threads

  1. problem with powerzoomer
    By reedspencer in forum HTML
    Replies: 1
    Last Post: 05-10-2013, 06:56 PM
  2. jQuery Multi Level CSS Menu #2 not working in IE6 using jQuery 1.4.x
    By Rikko in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 12-28-2010, 10:57 PM
  3. Replies: 0
    Last Post: 10-10-2007, 12:19 AM
  4. Greater than or Less than game!
    By roflmao456 in forum Submit a DHTML or CSS code
    Replies: 0
    Last Post: 10-17-2006, 11:40 PM
  5. a greater challenge
    By ito in forum JavaScript
    Replies: 24
    Last Post: 09-10-2006, 08:10 AM

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
  •