ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #15156
Re: Webapp touch and drag
On Mon, Aug 24, 2015 at 1:13 PM, Mitchell Reese
<dev@xxxxxxxxxxxxxxxxxxxxx> wrote:
> While I appreciate your response, I don't agree with your assumption. Trello
> has a native app for Android that behaves as it does on the desktop - i.e.,
> you can touch and drag cards easily. There is no reason for them to support
> any browsers on android.
>
> The reason the mobile website doesn't currently allow this is because of how
> its set-up: in order to drag a card you need to simulate the click and hold
> function on the button of the mouse. This currently isn't possible on Ubuntu
> Touch.
>
> What I'm asking is a really simple question: is there anyway to implement &
> mimic the click & hold option of a mouse at this time with Ubuntu Touch? Are
> there any options I can use on a per app basis for this? Is there any code
> in the webapp container I can change? Currently long pressing mimics the
> right mouse button, while a tap mimic a left click. I need something that
> mimics click and hold. Is there any way to change this on a per app basis?
>
> Considering that Trello doesn't support Ubuntu Touch officially (and based
> on recent correspondence I doubt much of their team realises it exists),
> contacting Trello directly for this problem seems pointless. Could someone
> please answer whether its possible for the click & hold function of a mouse
> to be implemented within Ubuntu Touch for a webapp at this time?
The current selection mechanism (which displays a blue rectangle with
4 handles and a "copy" action") is hooked up to the contextmenu DOM
event. That’s a hack, and is soon going to disappear (and will be
replaced by a proper text selection mechanism).
When that happens, this will leave room for long-press event handling,
although I’m not sure whether this will work out-of-the-box or will
require more plumbing in oxide.
One thing you could try is to convert your trello app to a QML app
that simply instantiates a WebView (from Ubuntu.Web 0.2). This will by
default disable the selection mechanism.
HTH,
Olivier
> On 24/08/15 19:59, Andrea Bernabei wrote:
>
>
>
> On Mon, Aug 24, 2015 at 10:45 AM, Mitchell Reese <dev@xxxxxxxxxxxxxxxxxxxxx>
> wrote:
>>
>> Hi Andrea, thanks for the reply. Nexus 7 tablet is Ubuntu Touch. The issue
>> is a browser problem with the device. It works fine in the Ubuntu browser on
>> the desktop with the sdk.
>> I have the same issue with the browser on chrome with an android tablet -
>
>
> Ok, so it behaves the same on Android.
> That means it's likely that it is actually the way the website is supposed
> to work (as I'd guess Trello tests their mobile website on Android at the
> very least). And if that is the case, it should be Trello to change the
> behaviour of their mobile website.
>
> It is less likely that this is a bug in the browser engine (both UbuntuTouch
> browser and Android default browser use chromium as engine, as far as I
> know), but that could also be the case.
>
> You could ask someone to test the website on iOS...if it behaves the same as
> Android and UbuntuTouch, then it's definitely the way the website is
> supposed to work, and in that case you should redirect your request to
> Trello :)
>
>
>> issue seems to be there is no imput option for a click and hold
>> equivalent. Is there any way to fix this? Would be great to do more things
>> better than android.
>>
>> Thanks.
>>
>> Mitchell
>>
>>
>>
>> On Monday, 24 August 2015 5:55:11 PM AEST, Andrea Bernabei wrote:
>>>
>>> On Sat, Aug 22, 2015 at 12:48 AM, Mitchell Reese
>>> <dev@xxxxxxxxxxxxxxxxxxxxx>
>>> wrote:
>>>
>>>> I created a Trello webapp sometime ago (14.10 sdk kit, I think), and for
>>>> my purposes it works great. One annoying issue however is that I can't
>>>> touch and drag the cards - their site relies on being able to touch and
>>>> drag cards around. Works fine on my laptop in the Ubuntu Browser,
>>>> however
>>>> on my BQ and Nexus 7 Tablet when I longpress I get the copy dialogue -
>>>> this
>>>> seems equivalent to right clicking on a desktop machine. When I touch
>>>> and
>>>> drag it only registers as a single click, thus opening the card. In the
>>>> Ubuntu Browser on my laptop (i.e., when I launch the webapp from the
>>>> sdk) I
>>>> can left click, and by holding the button down, am able to drag the
>>>> cards
>>>> around - no issues. Is there anyway to manage this within a webapp at
>>>> this
>>>> time, or is this functionality being developed? Is there anyway to
>>>> enable
>>>> this on a per-app basis?
>>>
>>>
>>>
>>> Hi Mitchell,
>>>
>>> is the Nexus7 running Android or UbuntuTouch?
>>> if not, have you tried surfing that website on a non-Ubuntu-Touch device,
>>> just to understand if it's a website or browser problem?
>>>
>>> Cheers,
>>> Andrea
>>>
>>> I.e., the copy dialogue is useless for Trello - I'd rather the longpress
>>>>
>>>> were equivalent to holding down a click co I can drag cards around.
>>>>
>>>> Thanks,
>>>>
>>>> Mitchell
>>>>
>>>> --
>>>> Mailing list: https://launchpad.net/~ubuntu-phone
>>>> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>>>> More help : https://help.launchpad.net/ListHelp
>>>>
>>>
>>
>>
>>
>> --
>> Sent using Dekko from my Ubuntu device
>
>
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
>
References