Commit graph

17 commits

Author SHA1 Message Date
scottjehl
0d9627d54e Added viewport meta elements to the markup of every template and removed the metaViewportContent option from code and docs. IE does not support generated viewport tags. 2011-03-14 00:20:23 -04:00
tschaub
899e9581e9 P free hamster. 2011-02-16 05:55:21 +08:00
Kin Blas
161f5e6ae3 Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually.
This makes our include model match the include model on the CDN, and allows devs to make use of mobileinit for debugging some of the samples since that must be set up after jquery.js, but before jquery-mobile.
2011-01-20 11:26:12 -08:00
Kin Blas
38f09ee66f Sweep through all files to add a trailing slash to <link> tags that include thems/default. This should fix Opera Mobile Issue 763. 2011-01-05 16:19:24 -08:00
Kin Blas
43eeddd1bb Sync up form settings with scrollview defaults.
Fixed a few markup errors.
2010-12-22 09:58:40 -08:00
Kin Blas
49c9db9c49 Turning on delayedClick by default. <again>
Added triggers for mousedown and mouse up in the delayed case because some of hte jqm components register handlers on those events to set the component states.

Note that the focus() trigger is commented out temporarily. It seems to cause the content within the scrollview clip to scroll to the point where item being focused sits in the flow .. unfortunately this screws up the rendering because we are using CSS3 translate, so the item clicked on is out of view.

Modified sv-test-02.html so that the clone event sets the target property on the fake event.
2010-12-16 11:04:48 -08:00
Kin Blas
8351f5496b Turn off delayedClickEnabled by default for now. We need to work out some kinks.
Modified sv-test-02.html so that you can dynamically turn on/off the delayedClick behavior.
2010-12-15 11:13:31 -08:00
Kin Blas
58506aeef4 Added code to defer the generation of a "click" event for form elements within a scrollview. This seems to keep form elements working on Android.
Added strict comparisons for strings as pointed out by jonathan in my previous checkin.
2010-12-15 08:06:07 -08:00
Kin Blas
aa1f94a81f Added support for scrolling via scrollTop/scrollLeft.
Modified sv-test-02.html so that you can dynamically switch the scrolling method used. This will allow us to test the performance of different methods on the different platforms.

Modified scrollview.js so that you can specify @data-scroll-method="translate|position|scroll".
2010-12-14 16:05:52 -08:00
Kin Blas
22d4f4f687 Removing some debug code I accidentally commited. 2010-12-13 15:34:19 -08:00
Kin Blas
1b06d3dd32 Changed page title. 2010-12-13 15:22:39 -08:00
Kin Blas
d31f92a649 Modified index so that all tests launch externally so they can pick up the CSS and JS that is specific to that test.
Added a couple of tests that will help us figure out what events need to be handled special to disable native view port scrolling, and what events are necessary for form elements to function properly.
2010-12-13 14:20:14 -08:00
Kin Blas
e72809ca49 Added links to tests so folks don't have to type them manually. 2010-12-10 16:07:58 -08:00
Kin Blas
33602a4dfd Implemented view paging for the scrollview. This feature is only enabled for horizontal and vertical scrollviews. To use, pass "xp" or "yp" for the @data-scroll attribute.
Fixed a typo/bug in scrollview.js that was causing the paging bool to be set improperly.

Turned on scrollview paging in scrollview-direction.html.

Items still left to do:

- Code refactoring/cleanup.
- Modify the code so that scroll offsets are stored as positive values. This will make it easier for folks to understand.
2010-12-02 09:47:46 -08:00
Kin Blas
63627e529f Fixed some copy/paste typos in the nested sample.
Got rid of some test code in the direction sample.
2010-12-01 14:57:28 -08:00
Kin Blas
39a9681d55 Implemented support for nested scrollviews, scroll propagation, and direction locking. To make a div scrollable use:
data-scroll="x|y|true"
2010-12-01 14:04:54 -08:00
Kin Blas
dbdfd23541 Initial checkin of experimental support for momentum scrolling. We'd really like native browser support for sub-page scrolling, but until then, we need something.
This version supports simulated scrolling via the CSS3 transform property by default, but also supports an option for positioning the old-fashioned way with top and left properties.

Still some code clean-up to do, but folks can start playing with it.

Some items/issues left to look into:

- Experiment with event delegation so we can implement nested scrollviews.
- Implement scroll direction locking.
- Decide whether to conditionally inject clip/view markup.
- Decide on final ui class names.
- Decide on how scrolling behavior is actually invoked. (data-* attribute or class)
- Decide on final set of notifications we'll need to fire off.
- Add an API so that scroll position can be adjusted after a resize/orientation change.
- Documentation that describes potential problems with performance, memory usage, etc, and workarounds.
2010-11-18 15:12:27 -08:00