Comments (8)
I completely agree! The x-tag library which brick is built upon has support for these gestures, and we should ensure these components do the "right" (expected) thing in regards to them. We're very open to community contributions :) but are also happy to implement this functionality on the way to stable 1.0
Thanks!
from brick.
Swipe gestures make sense to me, though keep in mind that the strength of "x-deck" currently is the ability to pull up any card you want, by calling its show function. Going to the "next" slide (whatever that currently means) by default when I swipe would definitely not be expected behavior for me.
That said, I can see the usecase.
from brick.
@fwenzel My gut reaction is that deck
would have gesture support that is disabled by default, whereas slidebox
would have support enabled by default. Either way, both should definitely support the gestures in some capacity.
from brick.
I like this suggestion, sounds like sane defaults. Plus they can share code ;)
from brick.
how about this proposal:
x-deck
would act like a deck of cards if you slide your finger you remove the top card and expose the one under it (the card under does not move)x-slide
when you swipe, the current card starts to move and a new one starts to slide into the frame (as if they are attached to each other instead of being stacked
But anyway, regardless of what we choose as default behaviour, I think everyone agrees that the functionality should be available for both deck
and slide
.
One thing I want to add is that we really need "natural swipe" as opposed to just an animation triggered after gesture is detected. There is currently a serious lack of this type of interaction, and I can see it is lacking when developing Firefox OS apps. What I mean by natural swipe is one that has immediate feedback as you are performing the action.
I am still wondering what the next steps are. Have you guys discussed how to add this feature? Is it possible to break down the implementation into smaller task, so people like me can take pick a piece?
from brick.
+1
from brick.
I've moved this issue to our 1.1 timeframe.
A lot of developers use the 'card' UI pattern, but want control over the way in which various cards are displayed. Even though they all live in a flat stack, only clicking the 'settings' button should show the 'settings' card, for example. I want to enable devs to opt-in to gesture based card movement, but it would break too many existing based UIs to have it on by default.
from brick.
This is now being tracked in mozbrick/brick-deck#5.
from brick.
Related Issues (20)
- TabView component for Brick 2.0 HOT 3
- dist folder contains old brick-common HOT 1
- brick-form is missing from dist folder HOT 1
- update readme to include all components HOT 1
- Can I use brick without bower? HOT 4
- minified version is not working; templates need IDs
- Interdependece of components triggers a double registration element error HOT 1
- Semibreakage in Firefox OS HOT 5
- Please add an info that Brick do not work from file:/// HOT 5
- gulp server does not exist HOT 2
- Site doesn't load on iOS (nor on desktop Safari) HOT 1
- Ditch Shadow DOM and HTML Imports in the name of compat? HOT 8
- Code citations
- Brick Docs Responsive Layout Example
- Brick-common has a script directory
- [1.0.1] Attribute target disappears from element <a> when page is loaded
- Unminified Platform.js
- brick sites are invisible under safari
- Create Brick's like components and easy data-binding
- CDNJS hosting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brick.