Bug Tracker

Ticket #1265 (closed bug: wontfix)

Opened 2 years ago

Last modified 2 months ago

Interface fisheye position:fixed; breaks

Reported by: stevenbristol Assigned to: stefan
Type: bug Priority: major
Milestone: 1.1.3 Component: interface
Version: 1.1.2 Keywords:
Cc: Needs: Review

Description

If you use the fisheye as a fixed position element and scroll the page, the mousemove events are tied to the previous location and can not be accurately rebound to the new location.

Attachments

Change History

Changed 2 years ago by stevenbristol

I worked around the problem with the help of the Dimensions plugin (http://jquery.com/plugins/project/dimensions):

var el = this; el.fisheyeCfg = {

items : jQuery(options.items, this), container: jQuery(options.container, this), pos : jQuery.iUtil.getPosition(this), itemWidth: options.itemWidth, itemHeight: options.itemHeight, itemsText: options.itemsText, proximity: options.proximity, valign: options.valign, halign: options.halign, maxWidth : options.maxWidth, hideText: options.hideText

}; el.fisheyeCfg.pos.y = el.fisheyeCfg.pos.y + jQuery(window).scrollTop();

....

And I changed the window resize event a bit:

var window_resize = function() {

el.fisheyeCfg.pos = jQuery.iUtil.getPosition(el); el.fisheyeCfg.pos.y = el.fisheyeCfg.pos.y + jQuery(window).scrollTop(); jQuery.iLightbox.positionContainer(el, 0); jQuery.iLightbox.positionItems(el);

};

jQuery(window)

.unbind('resize', window_resize) .unbind('scroll', window_resize) .bind('resize', window_resize) .bind('scroll', window_resize);

I realize that I this is not a proper fix (because it doesn't handle left, only top), but perhaps it can help you put the proper fix in. I will try to do something similar to the drag/drop stuff.

Thanks!

Changed 8 months ago by scott.gonzalez

  • status changed from new to closed
  • resolution set to wontfix

Interface is no longer supported; consider switching to jQuery UI.

Note: See TracTickets for help on using tickets.