Mobius1 / Selectable

Touch enabled selectable plugin inspired by the jQuery UI widget.
MIT License
142 stars 22 forks source link

Selecting in a calendar #50

Open developeregrem opened 2 years ago

developeregrem commented 2 years ago

Hi, first of all great work! Let's assume I have a calendar which displays each month side-by-side. I have the following config to enable selectable:

const selectable = new Selectable({
        lassoSelect: "sequential",
        appendTo: "#calendar",
        filter: ".day"
});

When I start selecting in one month and move to the second month like in the following image (Start 23.07 End 30.08): grafik Please note that the mouse was moved from top left to bottom right (see lasso). The example above works as expected. However, when I want to do the following: Start 23.07 End 10.08 (mouse is moved from bottom left to top right now!), it's not selecting any field: grafik

The expected behaviour should be that everything between 23.07. and 10.08. is selected now.

Therefore I'm wondering how to achieve the behaviour with your selectable?

All the best