滚动时仅在iPhone上显示固定子菜单的错误

时间:2015-10-22 18:34:23

标签: jquery ios mobile scroll toggleclass

我正在完成一个完全自定义,完全响应的网站,如下所示:

http://blakel11.github.io/starter-kit/app/

子菜单(类别过滤器)有一个我无法弄清楚的错误,只发生在实际(iPhone 6s和iPhone 6)移动视图中。它在桌面上运行得非常好。并且它不会在模拟器上显示。

基本上,在手机的实际移动视图中,子菜单栏在向下滚动时消失,然后在向上滚动后重新出现。

有谁知道为什么会这样?

我有GIF证明了下面的错误。

  • 以下是桌面上子菜单栏的GIF图 移动视图(工作正常):

    recordit.co/RZzmmzNsKJ

  • 这是一个GIF,显示子菜单栏在实际中的样子 (iPhone)移动视图(越野车,消失然后重新出现):

    recordit.co/fWH2A1APrp

我不知道如何正确发布代码。它没有用。

JS - line - github页面中的65 app / scripts / filter.js

app/styles/_content-filter.scss

Scss - line - 35

on('scroll')

提前致谢。

更新 - 我发现它是iOS的问题,并且在滚动结束之前不会触发事件。关于触发什么而不是//+ _applicationObject.GetObject("Microsoft.VisualStudio.TeamFoundation.TeamFoundationServerExt") {Microsoft.VisualStudio.TeamFoundation.TeamFoundationServerExt} dynamic {Microsoft.VisualStudio.TeamFoundation.TeamFoundationServerExt} var tfsExt = (TeamFoundationServerExt)_applicationObject.GetObject("Microsoft.VisualStudio.TeamFoundation.TeamFoundationServerExt"); //if ((tfsExt == null) || (tfsExt.ActiveProjectContext == null) || (tfsExt.ActiveProjectContext.DomainUri == null) || (tfsExt.ActiveProjectContext.ProjectUri == null)) { MessageBox.Show("Please Connect to TFS first and select a Team Project"); } //else { MessageBox.Show("Connected to:" + tfsExt.ActiveProjectContext.ProjectName); } var vsExt = _applicationObject.GetObject("Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlExt") as VersionControlExt; //vcs = vsExt.Explorer.Workspace.VersionControlServer; vcs = vsExt.SolutionWorkspace.VersionControlServer; vcs.OperationStarting += new OperationEventHandler(this.OperationHandler); vcs.UndonePendingChange += new PendingChangeEventHandler(this.UndoChange); vcs.Getting += new GettingEventHandler(this.GetHandler); vcs.NewPendingChange += new PendingChangeEventHandler(this.NewPendingChange); vcs.BeforeCheckinPendingChange += new ProcessingChangeEventHandler(this.BeforeCheckinPendingChange); vcs.CommitCheckin += new CommitCheckinEventHandler(this.CommitCheckin); vcs.Conflict += new ConflictEventHandler(this.Conflict); vcs.Merging += new MergeEventHandler(this.Merging); vcs.AfterWorkItemsUpdated += new AfterWorkItemsUpdatedEventHandler(this.AfterWorkItemsUpdated); vcs.BeforeWorkItemsUpdate += new BeforeWorkItemsUpdateEventHandler(this.BeforeWorkItemsUpdate); vcs.OperationFinished += new OperationEventHandler(this.OperationFinished); vcs.UpdatedWorkspace += new WorkspaceEventHandler(this.UpdatedWorkspace); vcs.WorkItemUpdated += new WorkItemUpdatedEventHandler(this.WorkItemUpdated); 的任何想法?

0 个答案:

没有答案