Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2019
    Thanked 0 Times in 0 Posts

    Create Post How to add a touch library ?

    I am testing Foundation for Apps by building an app who will be used only on mobile devices, so I need the "touch" support.

    I did not see any thing about gesture or touch in the actual documentation. I could use a javascript plug-in, but there is an Angular provider who do that well enough for me. The "ngTouch", provider.

    Did I miss something in the doc or how could I inject a new provider without altering the base files and keep the possibility to update the framework ?

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    West Des Moines, Iowa
    Thanked 1,092 Times in 1,088 Posts
    The browers that are made for cell phones will make buttons work when touched. Something like this: <button type="button">Click Me!</button> Will just work on a desk top, lap top, tablet, or cell phone. If yours don't you have something wrong with your code. If you do need help with that post your code here:https://www.codingforums.com/buildin...obile-devices/ to alert the people that program for mobiles.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

  3. #3
    Senior Coder deathshadow's Avatar
    Join Date
    Feb 2016
    Keene, NH
    Thanked 539 Times in 525 Posts
    Quote Originally Posted by nathandev View Post
    how could I inject a new provider without altering the base files and keep the possibility to update the framework ?
    That wording creeps me out. Fires off warning flags since I've been programming 40 years and:

    1) I didn't understand it.

    2) it sounds like something seriously wrong with what you're even trying to do.

    Probably stems from me telling "frameworks" across the board -- including Zurb's -- to go suck an egg. They do not make ANYTHING simpler, easier, and they certainly don't make you more productive.

    My advice, before you go using some garbage framework, learn to work in HTML/CSS/JS FIRST so you know if said framework is worth a damn or is actually accomplishing anything of value.

    You do that, you'll quickly find that Foundation, react, vue, whatever -- are overflowing with lies, disinformation, and outright bad practices that make you work harder, not smarter.

    As @sunfighter was saying, most touch interface related stuff -- scrolling, anchors, form elements -- are automatically supported if you're working with HTML/CSS, be it for a website, web application, or a full stack web app. The only things that might take a little extra work is stuff like swipes and gestures, but there are simple libraries and ways to intercept that .

    If you were working with vanilla html/css/js you'd have learned that. It's essential basics that in their ATTEMPT to be "simpler" frameworks, site/app creators, and so forth hide from you. Hence why universally such systems are little more than "False simplicity" -- reducing things below the complexity needed to actually accomplish the task.
    Last edited by deathshadow; Sep 1st, 2019 at 12:58 AM.
    “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.” – C.A.R. Hoare, The 1980 ACM Turing Award Lecture


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts