Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
DOM Events
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joe Hewitt  
View profile  
 More options Jun 30 2007, 12:55 am
From: Joe Hewitt <joehew...@gmail.com>
Date: Fri, 29 Jun 2007 21:55:44 -0700
Local: Sat, Jun 30 2007 12:55 am
Subject: DOM Events
I'm testing the bounds of JavaScript on my new iPhone and finding that
it does not dispatch "mousemove" events, and it doesn't dispatch
"mousedown" until you actually release your finger.  This is really
bumming me out because I was hoping to whip some some fun touch-screen
apps over the weekend.  It seems that double-clicking and dragging,
which are the means for zooming on the page, are always triggered in
favor of giving scripts in the page the ability to handle and override
these events.

I'm hoping we can find a workaround, or that the Webkit team will
announce they have added some new events for handling multi-touch
interaction.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Cann  
View profile  
 More options Jun 30 2007, 1:23 am
From: David Cann <davidjc...@gmail.com>
Date: Fri, 29 Jun 2007 22:23:05 -0700
Local: Sat, Jun 30 2007 1:23 am
Subject: Re: DOM Events
I can confirm this in my testing... and in even worse news, scrollable
divs do NOT have the bounce scroll feature.  You can scroll a div with
2 fingers, but you can't flick it.  Here's a sample:

http://davidcann.com/div

This, combined with the lack of a mousedown event is terrible news.
Also, have you found Safari to be exceptionally slow at executing
JavaScript?  When my digg app is supposed to slide nicely to the left,
it does it in about 3 frames... completely unacceptable.  It's no
wonder that Apple didn't implement the side animation in it's WWDC
app!

I hope they can improve on these weaknesses... or we're going to have
a difficult time developing innovative web apps.

-d

On Jun 30, 12:55 am, Joe Hewitt <joehew...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BikingBill  
View profile  
 More options Jun 30 2007, 1:26 am
From: BikingBill <william.v...@gmail.com>
Date: Sat, 30 Jun 2007 05:26:26 -0000
Local: Sat, Jun 30 2007 1:26 am
Subject: Re: DOM Events
So is mouseup the way to go?

(See the game)

On Jun 29, 10:23 pm, David Cann <davidjc...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Allen  
View profile  
 More options Jun 30 2007, 2:33 am
From: "Christopher Allen" <Christoph...@iPhoneWebDev.com>
Date: Fri, 29 Jun 2007 23:33:32 -0700
Local: Sat, Jun 30 2007 2:33 am
Subject: Re: DOM Events
On 6/29/07, Joe Hewitt <joehew...@gmail.com> wrote:

> I'm testing the bounds of JavaScript on my new iPhone and finding that
> it does not dispatch "mousemove" events, and it doesn't dispatch
> "mousedown" until you actually release your finger.  This is really
> bumming me out because I was hoping to whip some some fun touch-screen
> apps over the weekend.  It seems that double-clicking and dragging,
> which are the means for zooming on the page, are always triggered in
> favor of giving scripts in the page the ability to handle and override
> these events.

There are a lot of events that the iPhone doesn't pass (see my post on
"The Finger is not a Mouse"
http://groups.google.com/group/iphonewebdev/browse_thread/thread/cb37...
), and many it only simulates partly.

As I understand it clickable elements can get mousedown, mouseup,
mousemove, click events --
clickable elements include links, form, image map area, or with
elements that have elements mousedown, mouseeup, or click. Scrollable
elements such as textareas, iframes, and framesets get scroll events.

The iPhone definately doesn't support  onmouseover, cut/copy/paste,
drag/drop, and of course selection.

I'm told that to allow for some types of menus that hover is
supported, but I can't verify this.

Mouseover is supported, however, the problem may be that your
mouseover handler is not inside wht the iPhone thinks is a possible
"clickable" element. You may need to experiment to figure this out. It
is possible that hover may also be a solution for you (but I've never
used it before much less on an iPhone so I'm not a lot of help on that
one).

> I'm hoping we can find a workaround, or that the Webkit team will
> announce they have added some new events for handling multi-touch
> interaction.

As far as I know there are no multi-touch events for the browser. But
who knows as the docs are not out yet.

Good luck, and let us know what you figure out ;-)

-- Christopher Allen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
musesum  
View profile  
 More options Jun 30 2007, 4:58 pm
From: musesum <muse...@gmail.com>
Date: Sat, 30 Jun 2007 13:58:31 -0700
Local: Sat, Jun 30 2007 4:58 pm
Subject: Re: DOM Events
Drag and drop doesn't work on iPhone, but works on Safari, with these
examples:

   http://www.cyberdummy.co.uk/test/dd.php
   http://projects.backbase.com/RUI/portal.html
   http://www.openlaszlo.org/lps4/demos/amazon/amazon.lzx?lzt=html&lzr=d...

This is not good news.

\~/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »