is it possible to select items in page and order by drag and drop them in another page in a multi pages form

As in https://www.drupal.org/project/webform/issues/3037186

i’m asking the same request here as suggested in the issue

On Drupal8 and Webform, is there a way to have something like that :

  • user chooses X items in a list ;
  • he can order those X items by drag and drop ?

catalina – Mac chrome can’t drag and scroll in bookmark folder

I tried asking reddit and chrome forum but I think it’s a Mac thing, something with scrolling, anyway I can’t drag bookmarks up or down a folder on the bookmark bar, it gets stuck, from googling I found at least one person with a similar problem and lots of others with bookmark dragging problems.

Sometimes I want to rearrange on the fly, or add a seperator, bookmark manager is better, but less convenient for things like adding horizontal seperators, here’s what it looks like

Don’t really have any ideas, I won’t reinstall my whole chrome profile for it, too many bookmarks and things in my profile, I don’t want to risk corruption, but any other ideas I’ll try before I give up on it.

mouse – Why won’t my block Spaces/Holders hold my blocks when I drag onto them in Unity?

In my game I am trying to have numbered blocks and math operators be able to be dragged down into their respectively color coded holders (white holders = Numbers, black holders = operations). The spawn in color coded blocks called spawners. If you drop a block you were dragging in a space that isn’t a holder, then the block would immediately snap back to its respective spawner.

enter image description here
However, I am now encountering this issue where 99% of the time when I drop the block onto its respective holder, the block snaps back to its spawner instead of staying there.

Here’s the minimum reproducible code for dragging the blocks:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

(RequireComponent(typeof(Collider2D)))
public class DragDrop : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDragHandler
{
    (SerializeField) private SpriteRenderer _spriteRenderer;
    public SpriteRenderer _SpriteRenderer => this._spriteRenderer;
    (HideInInspector)public static bool isInSpace;
    (HideInInspector)public Vector3 initialPos;

    private void Start()
    {
        initialPos = transform.position;
        isInSpace = true;
    }

    public void OnDrag(PointerEventData eventData)
    {

        if (isInSpace == false)
        {
            Vector3 movement = new Vector3(
            x: (eventData.delta.x/3) * Time.deltaTime,
            y: (eventData.delta.y/3) * Time.deltaTime);

            this.transform.localPosition += movement;
        }
    }

    public void OnBeginDrag(PointerEventData eventData)
    {
        isInSpace = false;
    }

    public void OnEndDrag(PointerEventData eventData)
    {
        if (isInSpace == false)
        {
            transform.position = initialPos;
        }
    }

#if UNITY_EDITOR
    private void Reset()
    {
        this._spriteRenderer = this.GetComponent<SpriteRenderer>();
    }
#endif
}

And Here’s the code for receiving the blocks:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

public class RecieveBlock : MonoBehaviour, IDropHandler
{
    public void OnDrop(PointerEventData Block)
    {
        if (Block.pointerDrag != null && Block.pointerDrag.tag == gameObject.tag)
        {
            Block.pointerDrag.GetComponent<RectTransform>().anchoredPosition = GetComponent<RectTransform>().anchoredPosition;
            DragDrop.isInSpace = true;
        }
    }
        
}

I have no idea why it doesn’t set off the isInSpace bool to be true and stay there.

Thank you for reading.

finder – Drag & drop stops working sometimes on High Sierra

After a while of leaving my computer (macOS 10.13.6 High Sierra) on, drag & drop stops working. To be clear: I can only hold files and drag them, but cannot drop them at any location (in finder or within browser). Unlike related issues, copy and paste still works for me.

The only way I can drop the file and free my cursor is by going back to finder, and hitting the escape key, which returns the file to its old location.

Here are all the things I’ve tried so far:

None of these fix the problem. This issue occurs both with an external mouse and the trackpad.

Restarting the computer solves this issue temporarily, but it always comes back after some usage. Since it usually takes several hours for it to start happening, I haven’t narrowed down what application I open or activity I do that might cause this issue. I enable x11 when connect to a remote server terminal, so I have thought about whether that could cause an issue. But closing x11 and restarting finder doesn’t seem to solve the issue.

Another strange thing that happens simultaneously with this issue is that my dock does not display when I move my mouse to the bottom of the screen. But this is not as big of an issue since I can do three-finger up to show it.

System info:

  • macOS 10.13.6 High Sierra

Common apps I use which might be related:

  • Google Chrome
  • x11 from iTerm2
  • InsomniaX (closing this & restarting finder doesn’t solve this)
  • Spectacle (closing this & restarting finder doesn’t solve this)

Console info:

  • This looks like a relevant message on the console, which occurs when I try to drag & drop:
default ...     WindowServer    CoreAnimation: Context is a zombie!

Thanks!

unity – How can I use Drag handlers (IBeginDragHandler, IEndDragHandler, IDragHandler) with a 2D sprite renderer instead of a UI Image?

In my game, I assigned all of the blocks to be 2D sprites so that they could be easily converted into prefabs:
enter image description here

However, when designing the drag and drop scripts, I noticed that all of the drag and drop handlers such as IBeginDragHandler, IEndDragHandler, IDragHandler, etc. weren’t working at all. I later noticed that these were intended to be used by UI Images.

Now I am left wondering what I can do to make these 2D Sprites be usable by these functions for UI Images. Do I have any other options other than to start from scratch by making new UI Images?

Here’s the small amount of code needed to create a reproducible example:

public class DragDrop : MonoBehaviour, IBeginDragHandler, IEndDragHandler, IDragHandler
{

    public void OnBeginDrag(PointerEventData eventData)
    {
        Debug.Log("OnBeginDrag");
    }
    
    public void OnDrag(PointerEventData eventData)
    {
        Debug.Log("OnDrag");
    }

    public void OnEndDrag(PointerEventData eventData)
    {
        Debug.Log("OnEndDrag");
    }
}

usability – Drag and drop lists – multiple items with same priority

Initially, I had the following requirements:

  1. There are 2 lists with items. The user needs to be able to move the items from one list into the other.
  2. Each item needs to have a priority.

I’ve implemented the following solution:

mock

The user can drag and drop the items and I’m also keeping track of their priority.
For example, in List1, Item1 has priority 1 and Item2 has priority 2 and so on.
In List2, there is just Item4 with priority 1.

So this solution covers all the requirements.

The problem is that now there is a new requirement: multiple items can have the same priority.

So I can have Item1 and Item2 with priority 1 and Item3 with priority 2.

Can this current solution be adapted to this new requirement? I did think about it but wasn’t able to find a solution.

Or is there a completely different approach that is more suitable?

Thanks!

custom post types – Widget Drag and Drop from front end for users and rearrange order retrinving

I’m looking at front end feature, where from widget menu icons on left side, a user can drag and dropped, widgets into a default page common page and arranged in order as required by the user.

the number of widgets and the order and position and size how they are saved needs too be saved of each user and retrieved in the same order when he logs back in and displayed, like how its also in backend wp-admin dashboard

Kindly guide..