Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Click vs Touch, I'm confused Reply To: Click vs Touch, I'm confused

#199495

@senff and @shaneisme thanks! this helped me determine that it doesn’t look like it’s actually a touch vs. click thing, I think it’s iOS Safari thing, which is weird because everything works like it’s supposed to in every other webkit browser at full width and less than 700px, which is the breakpoint I’m using for the mobile styles. I’m really at a loss. Still picking away at it though. I’ve included the two classes that control the position of the moving element. Do you see anything amiss?

.mobile_nav{
    height: 1200px;
    float: left;
    position: absolute;
    overflow: scroll;
    margin: 0 0 0 -200px;
    z-index: 30;
    transition: margin 2s ease;
    -webkit-transition: margin 2s ease;
    -moz-transition: margin 2s ease;
    -o-transition: margin 2s ease;

}

.mobile_nav-open{
    height: 1200px;
    float: left;
    position: absolute;
    overflow: scroll;
    margin: 0 0 0 0;
    transition: margin 2s ease;
    -webkit-transition: margin 2s ease;
    -moz-transition: margin 2s ease;
    -o-transition: margin 2s ease;
    position: absolute;
    z-index: 30;
}