Welcome, Guest
Username: Password: Remember me

TOPIC: Playlist items sortable drag-and-drop in Firefox

Playlist items sortable drag-and-drop in Firefox 6 years 10 months ago #5462

I find the following behavior in Firefox, not in IE or Chrome or iOS...

When a playlist item is dragged to a new position, on release of the mouse in Firefox the dragged item becomes selected and starts to play. If the dragged item is already playing, play starts over at the beginning of the track. (If another item was selected beforehand, whether or not it was playing, it becomes deselected at the same instant.) Perhaps this behavior could be called "oops" behavior.

In IE or Chrome or iOS, item selection is not affected by dragging, whether or not already playing. This behavior is preferable - perhaps it could be called "quiet" or "discreet" behavior.

I have done a bit of homework on this. It seems that Firefox requires an additional jQuery instruction along the lines of "prevent default behavior when the mouse is released after dragging" to prevent the oops behavior.

Does this make sense? And if so, where would the additional instruction be inserted and how would it be written?

(Autoplay is set to off. Module height is set to auto, which removes the need for the playlist scrollbar to appear. To be certain the playlist scrollbar does not re-appear in connection with dragging of items, display of the scrollbar is set to none via css. I am also using css to prevent the dragged item's margin-top from changing as a result of dragging. These are personal preferences - I don't think they are relevant to the question, though they might make it easier to reproduce the behavior I am describing).
Last Edit: 6 years 10 months ago by Richard Howell.
The administrator has disabled public write access.

Playlist items sortable drag-and-drop in Firefox 6 years 10 months ago #5464

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello Richard Howell
Can you send me joomla admin and url your site via contact form? So we can check it
Best regards
Bach Pham
The administrator has disabled public write access.

Playlist items sortable drag-and-drop in Firefox 6 years 10 months ago #5467

Hello Bach Pham,
I just sent you the information via contact form.
Thank you.
Richard Howell
The administrator has disabled public write access.

Playlist items sortable drag-and-drop in Firefox 6 years 10 months ago #5470

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hi Richard Howell
We have checked demo in my site www.demo.joomcore.com/joomla32/index.php/jo-audio-player and item is dragged is work fine on Firefox. I think have conflict in your site and we are check it
Best regards
Bach Pham
The administrator has disabled public write access.

Playlist items sortable drag-and-drop in Firefox 6 years 10 months ago #5473

Bach Pham,

Yes, I see! Thank you for being willing to help with this.

I had the thought that it might be php version again. But I have tested it - locally - with versions 5.4 (which is as old as I can find) and 7.1. Neither makes any difference.

Thank you again,
Richard H
Last Edit: 6 years 10 months ago by Richard Howell. Reason: Can see now parts were irrelevant
The administrator has disabled public write access.

Playlist items sortable drag-and-drop in Firefox 6 years 10 months ago #5474

No improvement with php 7.1 or 5.4 instead of 5.6 - localhost testing. - Sorry, this post needs deleting!
Richard H
Last Edit: 6 years 10 months ago by Richard Howell.
The administrator has disabled public write access.
Time to create page: 0.058 seconds