Bug Tracker

Modify

Ticket #1307 (closed bug: wontfix)

Opened 6 years ago

Last modified 5 years ago

Interface: Slider click (without a drag) doesn't trigger onChange

Reported by: rmarscher Owned by: stefan
Priority: minor Milestone: 1.1.3
Component: interface Version: 1.1.2
Keywords: slider Cc:
Blocking: Blocked by:

Description

If you click on an area in the slider without dragging your mouse, it doesn't seem to trigger the onChange function. I tracked down the problem to occur within idrag.js in the dragstop method. dragged.dragCfg.init seems to be false in this case. I added a few extra lines to compare the current position and fire off the onChange function.

		if (dragged.dragCfg.init == false) {
			var nR = {
				x : parseInt(jQuery.css(dragged,'left')) || 0,
				y : parseInt(jQuery.css(dragged,'top')) || 0
			};
			if (dragged.dragCfg.onChange && (nR.x != dragged.dragCfg.oR.x || nR.y != dragged.dragCfg.oR.y)) {
				dragged.dragCfg.onChange.apply(dragged, dragged.dragCfg.lastSi||[0,0,nR.x,nR.y]);
			}
			return false;
		}

Change History

comment:1 in reply to: ↑ description Changed 6 years ago by drseb

Replying to rmarscher:

If you click on an area in the slider without dragging your mouse, it doesn't seem to trigger the onChange function. I tracked down the problem to occur within idrag.js in the dragstop method. dragged.dragCfg.init seems to be false in this case. I added a few extra lines to compare the current position and fire off the onChange function.

I confirm the bug, tested with Interface 1.2 and jQuery 1.1.2.

By the way, there was also ticket #1122 addressing the very same issue.

comment:2 Changed 5 years ago by scott.gonzal

  • Status changed from new to closed
  • Resolution set to wontfix

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.