Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"I don't think so," said Ren'e Descartes. Just then, he vanished.


devel / comp.lang.javascript / Re: Is there a trick to drag and drop on mobile browser?

SubjectAuthor
* Is there a trick to drag and drop on mobile browser?luserdroog
+* Re: Is there a trick to drag and drop on mobile browser?luserdroog
|`* Re: Is there a trick to drag and drop on mobile browser?luserdroog
| `- Re: Is there a trick to drag and drop on mobile browser?Michael Haufe (TNO)
`- Re: Is there a trick to drag and drop on mobile browser?W

1
Is there a trick to drag and drop on mobile browser?

<751098f7-126c-4dda-861a-8d2aeadc3c20n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18166&group=comp.lang.javascript#18166

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:6214:a71:b0:625:aa48:ddff with SMTP id ef17-20020a0562140a7100b00625aa48ddffmr138618qvb.12.1686104686909;
Tue, 06 Jun 2023 19:24:46 -0700 (PDT)
X-Received: by 2002:a05:6808:2127:b0:398:26cc:f7d6 with SMTP id
r39-20020a056808212700b0039826ccf7d6mr4955667oiw.3.1686104686542; Tue, 06 Jun
2023 19:24:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Tue, 6 Jun 2023 19:24:46 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=24.107.184.18; posting-account=G1KGwgkAAAAyw4z0LxHH0fja6wAbo7Cz
NNTP-Posting-Host: 24.107.184.18
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <751098f7-126c-4dda-861a-8d2aeadc3c20n@googlegroups.com>
Subject: Is there a trick to drag and drop on mobile browser?
From: luser.droog@gmail.com (luserdroog)
Injection-Date: Wed, 07 Jun 2023 02:24:46 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1672
 by: luserdroog - Wed, 7 Jun 2023 02:24 UTC

I've been trying to write a simple web app that uses drag and drop.
It works fine on a desktop with a mouse, capturing "dragstart" and
"dragend" for the draggable=true element and capturing "dragenter",
"dragover" and "drop" on the target element.

I added listeners for "touchstart" and "touchend" and had the latter
simply call my drop handler function. And that got it to work with
the touchscreen on my windows laptop, but no dice on an android
phone. Is there an extra trick I didn't describe doing here? I'm calling
event.preventDefault() in the handlers for "dragenter" and "dragover".
Do I need to prevent the default action with "touchstart" ?

Re: Is there a trick to drag and drop on mobile browser?

<cde7e14b-f40c-4c4d-b99c-d92f63b93f95n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18168&group=comp.lang.javascript#18168

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:620a:1a1e:b0:75b:2992:2f3a with SMTP id bk30-20020a05620a1a1e00b0075b29922f3amr603297qkb.4.1686238570963;
Thu, 08 Jun 2023 08:36:10 -0700 (PDT)
X-Received: by 2002:a05:6830:10c:b0:6b2:9223:e427 with SMTP id
i12-20020a056830010c00b006b29223e427mr2622475otp.0.1686238570607; Thu, 08 Jun
2023 08:36:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Thu, 8 Jun 2023 08:36:10 -0700 (PDT)
In-Reply-To: <751098f7-126c-4dda-861a-8d2aeadc3c20n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.107.184.18; posting-account=G1KGwgkAAAAyw4z0LxHH0fja6wAbo7Cz
NNTP-Posting-Host: 24.107.184.18
References: <751098f7-126c-4dda-861a-8d2aeadc3c20n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cde7e14b-f40c-4c4d-b99c-d92f63b93f95n@googlegroups.com>
Subject: Re: Is there a trick to drag and drop on mobile browser?
From: luser.droog@gmail.com (luserdroog)
Injection-Date: Thu, 08 Jun 2023 15:36:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2233
 by: luserdroog - Thu, 8 Jun 2023 15:36 UTC

On Tuesday, June 6, 2023 at 9:24:51 PM UTC-5, luserdroog wrote:
> I've been trying to write a simple web app that uses drag and drop.
> It works fine on a desktop with a mouse, capturing "dragstart" and
> "dragend" for the draggable=true element and capturing "dragenter",
> "dragover" and "drop" on the target element.
>
> I added listeners for "touchstart" and "touchend" and had the latter
> simply call my drop handler function. And that got it to work with
> the touchscreen on my windows laptop, but no dice on an android
> phone. Is there an extra trick I didn't describe doing here? I'm calling
> event.preventDefault() in the handlers for "dragenter" and "dragover".
> Do I need to prevent the default action with "touchstart" ?

Some further searching suggests the answer might be to work with Pointer
events rather than Touch and/or Drag&Drop. It seems that some of the
Touch api on android chrome might be trying to use a deprecated
Element.setCapture() method.

Re: Is there a trick to drag and drop on mobile browser?

<266b5ae3-0b68-4bd7-a267-97e14d96b122n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18169&group=comp.lang.javascript#18169

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:622a:1a01:b0:3f6:aacf:5835 with SMTP id f1-20020a05622a1a0100b003f6aacf5835mr1179625qtb.1.1686364811086;
Fri, 09 Jun 2023 19:40:11 -0700 (PDT)
X-Received: by 2002:a05:6870:a8aa:b0:1a0:bbee:c1c3 with SMTP id
eb42-20020a056870a8aa00b001a0bbeec1c3mr1165356oab.10.1686364810784; Fri, 09
Jun 2023 19:40:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Fri, 9 Jun 2023 19:40:10 -0700 (PDT)
In-Reply-To: <cde7e14b-f40c-4c4d-b99c-d92f63b93f95n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.107.184.18; posting-account=G1KGwgkAAAAyw4z0LxHH0fja6wAbo7Cz
NNTP-Posting-Host: 24.107.184.18
References: <751098f7-126c-4dda-861a-8d2aeadc3c20n@googlegroups.com> <cde7e14b-f40c-4c4d-b99c-d92f63b93f95n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <266b5ae3-0b68-4bd7-a267-97e14d96b122n@googlegroups.com>
Subject: Re: Is there a trick to drag and drop on mobile browser?
From: luser.droog@gmail.com (luserdroog)
Injection-Date: Sat, 10 Jun 2023 02:40:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2814
 by: luserdroog - Sat, 10 Jun 2023 02:40 UTC

On Thursday, June 8, 2023 at 10:36:15 AM UTC-5, luserdroog wrote:
> On Tuesday, June 6, 2023 at 9:24:51 PM UTC-5, luserdroog wrote:
> > I've been trying to write a simple web app that uses drag and drop.
> > It works fine on a desktop with a mouse, capturing "dragstart" and
> > "dragend" for the draggable=true element and capturing "dragenter",
> > "dragover" and "drop" on the target element.
> >
> > I added listeners for "touchstart" and "touchend" and had the latter
> > simply call my drop handler function. And that got it to work with
> > the touchscreen on my windows laptop, but no dice on an android
> > phone. Is there an extra trick I didn't describe doing here? I'm calling
> > event.preventDefault() in the handlers for "dragenter" and "dragover".
> > Do I need to prevent the default action with "touchstart" ?
> Some further searching suggests the answer might be to work with Pointer
> events rather than Touch and/or Drag&Drop. It seems that some of the
> Touch api on android chrome might be trying to use a deprecated
> Element.setCapture() method.

After much fumbling and fretting, the only "trick" I've found in getting it
to work was adding "touch-action:none" very precisely in the css. If I put it
around the whole table then you couldn't scroll away once you scroll the
table into view, so it had to be just on the "TD" element that I wanted to
manipulate. I had to learn and use the :has() whachacallit (pseudoclass?).

Re: Is there a trick to drag and drop on mobile browser?

<6340b6ee-fe83-446e-a9ab-edf96c3e06dcn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18171&group=comp.lang.javascript#18171

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:ad4:5583:0:b0:62d:f7e2:f3a5 with SMTP id f3-20020ad45583000000b0062df7e2f3a5mr1879078qvx.11.1687200046396;
Mon, 19 Jun 2023 11:40:46 -0700 (PDT)
X-Received: by 2002:aca:bd85:0:b0:39e:8fcb:2ae2 with SMTP id
n127-20020acabd85000000b0039e8fcb2ae2mr2186677oif.4.1687200046062; Mon, 19
Jun 2023 11:40:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Mon, 19 Jun 2023 11:40:45 -0700 (PDT)
In-Reply-To: <266b5ae3-0b68-4bd7-a267-97e14d96b122n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:6000:8900:6915:1524:11b9:7710:5f03;
posting-account=hYRygAoAAABkmvJVmPilz9Q1TOjgPQAq
NNTP-Posting-Host: 2603:6000:8900:6915:1524:11b9:7710:5f03
References: <751098f7-126c-4dda-861a-8d2aeadc3c20n@googlegroups.com>
<cde7e14b-f40c-4c4d-b99c-d92f63b93f95n@googlegroups.com> <266b5ae3-0b68-4bd7-a267-97e14d96b122n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6340b6ee-fe83-446e-a9ab-edf96c3e06dcn@googlegroups.com>
Subject: Re: Is there a trick to drag and drop on mobile browser?
From: tno@thenewobjective.com (Michael Haufe (TNO))
Injection-Date: Mon, 19 Jun 2023 18:40:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1993
 by: Michael Haufe (TNO) - Mon, 19 Jun 2023 18:40 UTC

On Friday, June 9, 2023 at 9:40:16 PM UTC-5, luserdroog wrote:
> [...]
> After much fumbling and fretting, the only "trick" I've found in getting it
> to work was adding "touch-action:none" very precisely in the css. If I put it
> around the whole table then you couldn't scroll away once you scroll the
> table into view, so it had to be just on the "TD" element that I wanted to
> manipulate. I had to learn and use the :has() whachacallit (pseudoclass?)..

You might find this useful as well:

<https://simblob.blogspot.com/2023/02/making-of-draggable-objects.html>

Re: Is there a trick to drag and drop on mobile browser?

<cacd28ef-7155-4d6c-bc57-71f434a4d4aen@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18172&group=comp.lang.javascript#18172

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:6214:4c1e:b0:635:de09:205d with SMTP id qh30-20020a0562144c1e00b00635de09205dmr129586qvb.1.1687780054373;
Mon, 26 Jun 2023 04:47:34 -0700 (PDT)
X-Received: by 2002:a05:6870:f14e:b0:1b0:271d:29df with SMTP id
l14-20020a056870f14e00b001b0271d29dfmr1589274oac.4.1687780053996; Mon, 26 Jun
2023 04:47:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Mon, 26 Jun 2023 04:47:33 -0700 (PDT)
In-Reply-To: <751098f7-126c-4dda-861a-8d2aeadc3c20n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=82.131.36.251; posting-account=JYCD-AoAAABJjYHTEug7bzEvKBag4Jpy
NNTP-Posting-Host: 82.131.36.251
References: <751098f7-126c-4dda-861a-8d2aeadc3c20n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cacd28ef-7155-4d6c-bc57-71f434a4d4aen@googlegroups.com>
Subject: Re: Is there a trick to drag and drop on mobile browser?
From: wwwwwwwwwaaaaaaaaaaaaa@hotmail.com (W)
Injection-Date: Mon, 26 Jun 2023 11:47:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
X-Received-Bytes: 3392
 by: W - Mon, 26 Jun 2023 11:47 UTC

New places opened, You are all welcomed there !
⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀✦
⠀✦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀✦⠀
⠀✦⠀⠀youthmeetupplace.talk4fun.net/a.php⠀⠀⠀✦⠀
⠀✦⠀⠀⠀kohtumispaik3.66ghz.com/a.php⠀⠀⠀⠀⠀✦⠀
⠀✦⠀⠀⠀⠀anglezzzzzzz.likesyou.org/a.php⠀⠀⠀⠀⠀ ✦⠀
⠀✦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀✦⠀
⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦⠀⠀✦
⠀⠀↑⠀⠀⠀↑⠀⠀⠀↑⠀⠀⠀↑⠀⠀⠀↑⠀⠀⠀↑⠀⠀⠀↑⠀⠀⠀↑⠀⠀⠀↑⠀

On Wednesday, June 7, 2023 at 5:24:51 AM UTC+3, luserdroog wrote:
> I've been trying to write a simple web app that uses drag and drop.
> It works fine on a desktop with a mouse, capturing "dragstart" and
> "dragend" for the draggable=true element and capturing "dragenter",
> "dragover" and "drop" on the target element.
>
> I added listeners for "touchstart" and "touchend" and had the latter
> simply call my drop handler function. And that got it to work with
> the touchscreen on my windows laptop, but no dice on an android
> phone. Is there an extra trick I didn't describe doing here? I'm calling
> event.preventDefault() in the handlers for "dragenter" and "dragover".
> Do I need to prevent the default action with "touchstart" ?

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor