Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Scrolling Panel Card Issues (not responsive) When Touching a Control first

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: Scrolling Panel Card Issues (not responsive) When Touching a Control first

    We submitted this as a bug report to Alpha and Selwyn fixed this - it will be in tomorrow's pre-release. For user's of older builds, Selwyn offered a solution as well:
    Thank you to Selwyn for the prompt reply on this bug report.

    Solution for older Builds (Working in Build 4346) - in the UX - go to properties - advanced - other properties and add
    Code:
    tmpl.jsRunAtBeginning=<<%longString%
    A5.u.drag._start = function(e){
            // start
            // get data
            var d = A5.u.drag;
            var i = d._i;
            if(i._sEle){
                if(i._sEle.parentNode == null) d.stop();
            }
            // bail if edit control
            var sEle = e.target || e.srcElement;
            if(sEle){
                if(sEle.tagName){
                    var tag = sEle.tagName.toLowerCase();
                    if(tag == 'input' || tag == 'textarea'){
                        if(document.activeElement){
                            if(document.activeElement == sEle) return null;
                        } else return null;
                    }
                }
            }
    
            // bail if not active
            if(i._a) return true;
            var c = d._getCoors(e);
            i._sEle = document.elementFromPoint(c.clientX,c.clientY);
    
            var ti = false;
            if(e.type == 'touchstart') ti = e.changedTouches[0].identifier;
            d._setupI(i,c.clientX,c.clientY,ti);
    
            d._awe = {};
            var stopEvent = false;
            var ele = this;
            var eId = '';
            while(ele.tagName.toUpperCase() != 'BODY'){
                eId = ele.id;
                if(eId != ''){
                    if(typeof d._w[eId] != 'undefined'){
                        d._awe[eId] = ele;
                        // prevent
                        if(d._w[eId].p){
                            stopEvent = true;
                            break;
                        }
    
                        // scrolling
                        if(d._w[eId].s && !d._w[eId].s.disabled && !i._s){
                            var ss = d._w[eId].s;
    
                            // retrive custom scroll location
                            var cScrl = $ga(ele,'A5CustomScroll');
                            var cSX = 0;
                            var cSY = 0;
                            if(cScrl){
                                cScrl = cScrl.split(',');
                                cSX = Number(cScrl[0]);
                                cSY = Number(cScrl[1]);
                            }
    
                            // calc size of content
                            // get y padding first time around
                            if(typeof ss._p == 'undefined'){
                                ss._p = {t: 0, b: 0};
                                // get computed styles from transforms
                                var swcs = {paddingTop: '', paddingBottom: ''};
                                if(typeof window.getComputedStyle != 'undefined') swcs = window.getComputedStyle(ele);
                                else if(ele.currentStyle) swcs = ele.currentStyle;
                                if(swcs.paddingTop != '') ss._p.t = A5.u.convertUnits(swcs.paddingTop,'px');
                                if(swcs.paddingBottom != '') ss._p.b = A5.u.convertUnits(swcs.paddingBottom,'px');
                                ss._p.y = ss._p.t+ss._p.b;
                            }
                            var sW = ele.scrollWidth+cSX;
                            // -2 for padding on top and bottom to fix child margin issue
                            var sH = ele.firstChild.offsetHeight+ss._p.y-2;
    
                            //var sH = ele.scrollHeight;
                            //if(!A5.flags.isFireFox) sH +=cSY;
                            //var sW = ele.firstChild.offsetWidth+ss._p.x;
    
    
                            // stop momentum
                            if(d._st[eId]){
                                // get computed styles from transforms
                                var swcs = {};
                                swcs[A5.u.css.properties.transformDOM] = '';
                                if(typeof window.getComputedStyle != 'undefined') swcs = window.getComputedStyle(ele.firstChild);
                                else if(ele.currentStyle) swcs = ele.firstChild.currentStyle;
    
                                var transform = {e : 0, f : 0};
                                if(A5.flags.isFireFox || A5.flags.isOpera){
                                    var mRE = /matrix\(\s*-?\d+(?:\.\d+)?\s*,\s*-?\d+(?:\.\d+)?\s*,\s*-?\d+(?:\.\d+)?\s*,\s*-?\d+(?:\.\d+)?\s*\,\s*(-?\d+(?:\.\d+)?)\s*,\s*(-?\d+(?:\.\d+)?)\s*\)/;
                                    var mREM = swcs[A5.u.css.properties.transformDOM].match(mRE);
                                    if(mREM){
                                        transform.e = mREM[1];
                                        transform.f = mREM[2];
                                    }
                                } else if(A5.flags.isWebKit){
                                    transform = new WebKitCSSMatrix(swcs[A5.u.css.properties.transformDOM]);
                                } else{
                                    transform = new MSCSSMatrix(swcs[A5.u.css.properties.transformDOM]);
                                }
                                cSX = Math.round(transform.e)*-1;
                                cSY = Math.round(transform.f)*-1;
                                // removed because causing issues with scroll growth overshoot
                                // load old size if more then calced new size - if momentum would not have changed from first scroll
                                //sW = sW > d._st[eId].w ? sW : d._st[eId].w;
                                //sH = sH > d._st[eId].h ? sH : d._st[eId].h;
                                sW = d._st[eId].w;
                                sH = d._st[eId].h;
                                clearInterval(d._st[eId].inter);
    
                                delete d._st[eId];
    ele.firstChild.style[A5.u.css.properties.transitionDOM] = '';
    ele.firstChild.style[A5.u.css.properties.transformDOM] = A5.u.css.transform2D((cSX*-1),(cSY*-1));
                            }
    
                            // setup scroll info
                            i._s = {
                                id: eId,
                                iX: false,
                                iY: false,
                                x: false,
                                y: false,
                                vX: cSX,
                                vY: cSY,
                                cX: cSX,
                                cY: cSY,
                                sW: sW,
                                sH: sH,
                                mX: sW-ele.clientWidth,
                                mY: sH-ele.clientHeight,
                                p: ss.pull,
                                oP: ss.onPull.constructor == Function,
                                oPE: ss.onPullEnd.constructor == Function,
                                oPF: ss.onPull,
                                oPEF: ss.onPullEnd,
                                b: ss.bounce.allow,
                                pX: ele.offsetWidth/2,
                                pY: ele.offsetHeight/2,
                                pXP: 0,
                                pYP: 0,
                                oW: ele.offsetWidth,
                                oH: ele.offsetHeight,
                                xIBEle: false,
                                yIBEle: false
                            };
    
                            if((ss.axis == 'x' || ss.axis == 'both') && !i._cX && (ele.clientWidth+4 < i._s.sW || ss.pull.x == 'always')){
                                i._s.x = true;
                                if(ss.indicator.show && ss.indicator.h.show){
                                    var sIEle = $(ele.id+'.SCROLLINDICATOR.X');
                                    if(!sIEle){
                                        sIEle = document.createElement('div');
                                        sIEle.id = ele.id+'.SCROLLINDICATOR.X';
                                        sIEle.className = ss.indicator.h.className;
                                        ele.appendChild(sIEle);
                                        $ss(sIEle,'display: none; position: absolute; overflow: hidden; left: '+ss.indicator.h.left+'; right: '+ss.indicator.h.right+'; width: auto; '+ss.indicator.h.location+': '+ss.indicator.h.offset+';');
                                        sIEle.innerHTML = '<div class="'+ss.indicator.h.barClassName+'" style="position: absolute; top: 0px; left: 0px; font: 0px; width: 5px; height: 5px;"></div>';
                                    }
                                    sIEle.style.display = 'none';
                                    var sIBEle = sIEle.firstChild;
                                    sIBEle.style.left = ((i._s.vX/i._s.sW)*100)+'%';
                                    sIBEle.style.width = Math.max(5,(ele.clientWidth/i._s.sW)*100)+'%';
                                    sIBEle.style.minWidth = '10px';
    sIBEle.style[A5.u.css.properties.transitionDOM] = '';
                                    i._s.xIBEle = sIBEle;
                                }
                            }
                            if((ss.axis == 'y' || ss.axis == 'both') && !i._cY && (ele.clientHeight+4 < i._s.sH || ss.pull.y == 'always')){
                                i._s.y = true;
                                if(ss.indicator.show && ss.indicator.v.show){
                                    var sIEle = $(ele.id+'.SCROLLINDICATOR.Y');
                                    if(!sIEle){
                                        sIEle = document.createElement('div');
                                        sIEle.id = ele.id+'.SCROLLINDICATOR.Y';
                                        sIEle.className = ss.indicator.v.className;
                                        ele.appendChild(sIEle);
                                        $ss(sIEle,'display: none; position: absolute; overflow: hidden; top: '+ss.indicator.v.top+'; bottom: '+ss.indicator.v.bottom+'; height: auto; '+ss.indicator.v.location+': '+ss.indicator.v.offset+';');
                                        sIEle.innerHTML = '<div class="'+ss.indicator.v.barClassName+'" style="position: absolute; top: 0px; left: 0px; font: 0px; width: 5px; height: 5px;"></div>';
                                    }
                                    sIEle.style.display = 'none';
                                    var sIBEle = sIEle.firstChild;
                                    sIBEle.style.top = ((i._s.vY/i._s.sH)*100)+'%';
                                    sIBEle.style.height = ((ele.clientHeight/i._s.sH)*100)+'%';
                                    sIBEle.style.minHeight = '10px';
    sIBEle.style[A5.u.css.properties.transitionDOM] = '';
                                    i._s.yIBEle = sIBEle;
                                }
                            }
                            if(ss.stopPropagation){
                                if(!i._cX && i._s.x) i._cX = true;
                                if(!i._cY && i._s.y) i._cY = true;
                            }
                        }
    
                        // dragging
                        if(d._w[eId].c && !d._w[eId].c.disabled){
                            if(d._w[eId].c.axis == 'x' && !i._cX) i._cX = {id: eId, l: false, a: false, f: i._s == false};
                            else if(d._w[eId].c.axis == 'y' && !i._cY) i._cY= {id: eId, l: false, a: false, f: i._s == false};
                            else{
                                if(!i._cX) i._cX = {id: eId, l: false, a: false, f: i._s == false};
                                if(!i._cY) i._cY = {id: eId, l: false, a: false, f: i._s == false};
                            }
                            if(i._cX != false && i._cY != false) break;
                        }
                    }
                }
                ele = ele.parentNode;
            }
            // fix drag vars
            if(i._cX == true) i._cX = false;
            if(i._cY == true) i._cY = false;
            if(!i._cX) i._cX = {id: false, a: false, l: false, f: false};
            if(!i._cY) i._cY = {id: false, a: false, l: false, f: false};
    
            // detect is drag occurs
            if(i._cX.id && i._cY.id){
                if(i._cX.id == i._cY.id) i._cB = true;
            }
            if(i._s || i._cX.id || i._cY.id){
                d._da = true;
                var imd = false;
                if(i._cX.id){
                    if(d._w[i._cX.id].c.tolerance == -1) imd = true;
                }
                if(i._cY.id){
                    if(d._w[i._cY.id].c.tolerance == -1) imd = true;
                }
                if(imd) d._move(e);
            } else{
                i._a = false;
                //if(stopEvent) $e.stopEvent(e);
                //else $e.preventDefault(e);
                //$e.stopPropagation(e);
    
                //$e.preventDefault(e);
                if(stopEvent){
                    // stop parent nodes from adding drag
                    i._a = true;
                    setTimeout(function(){A5.u.drag._i._a = false},0);
                }
            }
            //return false;
        }
    %longString%
    Scott Moniz - Computer Programmer/Analyst
    REA Inc.
    http://reainc.net
    (416)-533-3777
    [email protected]

    REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
    If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
    contact us to discuss options.

    Comment


      #17
      Re: Scrolling Panel Card Issues (not responsive) When Touching a Control first

      Overall the scrolling feels much nicer/responsive with this solution in place.
      Scott Moniz - Computer Programmer/Analyst
      REA Inc.
      http://reainc.net
      (416)-533-3777
      [email protected]

      REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
      If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
      contact us to discuss options.

      Comment


        #18
        Re: Scrolling Panel Card Issues (not responsive) When Touching a Control first

        Thanks for pushing this Scott. I've submitted it twice and was told that's just the way it was... nothing could be done... which I knew could not be the case.

        Comment


          #19
          Re: Scrolling Panel Card Issues (not responsive) When Touching a Control first

          I see - well, glad Alpha was able to resolve. Im not sure it makes things 100%, but it definitely feels A LOT nicer and so far so good.
          Scott Moniz - Computer Programmer/Analyst
          REA Inc.
          http://reainc.net
          (416)-533-3777
          [email protected]

          REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
          If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
          contact us to discuss options.

          Comment


            #20
            Re: Scrolling Panel Card Issues (not responsive) When Touching a Control first

            Well sounds great, will give it a go, has been a real issue for my clients for a long time which really put me off offering it. - Thanks.
            Insanity: doing the same thing over and over again and expecting different results.
            Albert Einstein, (attributed)
            US (German-born) physicist (1879 - 1955)

            Comment

            Working...
            X