Coder Social home page Coder Social logo

Comments (2)

AmazingJaze avatar AmazingJaze commented on June 23, 2024

Hi @nikolafon, apologies for the long delay.

WinJS Pivot uses native browser CSS Scroll Snap Points http://dev.w3.org/csswg/css-snappoints/
to achieve the sticky swipe behavior you experienced in Windows Phone. Not every browser has implemented support for this yet but it is part of the W3C standard. In browsers where native features are not yet implemented we will fall back to the basic support you saw in the Android browser.

We don't currently have pattern to reveal a pattern on edge swipe. WinJS is a cross browser library and I would expect that such a pattern would require support from a native event to inform WinJS when an edge swipe has occurred. Are you aware of other controls library supporting this pattern?
From a WinJS controls standpoint you could use a WinJS.UI.SplitView with

closedDisplayMode: WinJS.UI.SplitView.ClosedDisplayMode.none;

To achieve the visual and layout requirements of that scenario, but you would still require an event to know when to toggle the SplitView.opened property to true.

Regarding your last question there is not currently support in the ListView to swipe on an item to reveal new options.The closest thing to this sort of listitem swipe behavior was "cross slide" which was removed from the ListView in WinJS 3.0 I have asked around and there are currently no plans to add support for this pattern in ListView

from angular-winjs.

nikolafon avatar nikolafon commented on June 23, 2024

Thanks @AmazingJaze for the thorough explanation. In the end I went for my custom solutions and I can say I regret. Way to much cross browser issues. Going with WinJS you might not be able to achieve all the goals that you want it the app but at least what you have is going to work properly in all browsers.

from angular-winjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.