mirror of
https://github.com/koel/koel.git
synced 2026-04-25 16:56:02 +03:00
[PR #391] [CLOSED] Prevent click and drag where not anticipated #1231
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#1231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/koel/koel/pull/391
Author: @BernardGoldberger
Created: 8/3/2016
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
5782d36Prevent click and drag where not anticipated📊 Changes
13 files changed (+75 additions, -22 deletions)
View changed files
📝
resources/assets/js/components/main-wrapper/extra/album-info.vue(+3 -1)📝
resources/assets/js/components/main-wrapper/extra/artist-info.vue(+3 -1)📝
resources/assets/js/components/main-wrapper/extra/youtube.vue(+1 -1)📝
resources/assets/js/components/main-wrapper/main-content/album.vue(+11 -3)📝
resources/assets/js/components/main-wrapper/main-content/artist.vue(+10 -2)📝
resources/assets/js/components/main-wrapper/main-content/favorites.vue(+2 -1)📝
resources/assets/js/components/main-wrapper/main-content/playlist.vue(+1 -0)📝
resources/assets/js/components/main-wrapper/main-content/profile.vue(+4 -1)📝
resources/assets/js/components/main-wrapper/sidebar/index.vue(+31 -8)📝
resources/assets/js/components/main-wrapper/sidebar/playlist-item.vue(+1 -0)📝
resources/assets/js/components/shared/user-item.vue(+1 -1)📝
resources/assets/js/components/site-footer/index.vue(+6 -2)📝
resources/assets/js/components/site-header/user-badge.vue(+1 -1)📄 Description
It would happen on occasion that I would mistakenly click and drag items, and if if drag it over a droppable item things would break.
To reproduce this, click and drag the home item on to current queue. The solution is to return false on mouse click down.

I tested it on Windows & iPhone6S the Opera browser and everything if functioning fine after the changes, including clicking and dragging items into the queue.
Besides for th occasional issues it was causing, I believe that it makes the App nicer in general when you don't have weird dragable things in it.
I hope you approve, I tried sticking to your format on things. I'm not a professional programmer which means that there might be a better way to do it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.