Giter Club home page Giter Club logo

screenswipe's People

Contributors

brogan89 avatar mrtorrent avatar nicholassheehan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

screenswipe's Issues

Request: make screens public

This is probably the tiniest bug report I've ever written but could you make your screens List variable public?
Or alternatively add a public method to get the currently active screen gameObject from the list. I've changed it in a local copy so far but would be nice to include your package from the package manager again for updates etc.

And thanks for the asset, works great!

Swipe doesn't work with ScrollView

When you have a scrollrect panel in a screen you can't swipe in that screen. My scrollView is my entire screen so there's nothing I can do about it just buttons work for moving between screens!

[Feature] Freely scrolling

Hi, thanks for you work.

I adding small feature (in my project) "freely scrolling". The essence is simple, add a button (in Editor) that allows or not to freely scroll through screens.

Use case: user can swipe under the last screen and see background (which may not be). If "freely scrolling" enable (true), user can drag screen how them want, else (false) them can swipe only between anchoredPosition.

Feature so small, but so efficient.

  1. In ScreenSwipe.cs adding field:
[SerializeField]
[Tooltip("(true), user can drag screen how them want, else (false) them can swipe only between anchoredPosition.")]
private bool freelyScrolling;
  1. In SetContentAnchoredPosition in third condition add:
if (swipeType == SwipeType.Vertical) position.x = content.anchoredPosition.x;
if (swipeType == SwipeType.Horizonal) position.y = content.anchoredPosition.y;

if (position != content.anchoredPosition)
{

    if (freelyScrolling) content.anchoredPosition = position;
    UpdateBounds();
}

I can create Pull Request or you can make changes yourself. Anyway let me know about you decision.

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.