                     MyLog("SWView scrolling back c=\(scrollingCount+1)", level:1)
                 }
             }
-            self.scrollingCount++
+            self.scrollingCount += 1
             MyLog("SWView scrollling to \(offsetAligned)", level:1)
             scrollView.setContentOffset(offsetAligned, animated: true)
             break

#elseif os(tvOS)
    func scrollViewDidEndScrollingAnimation(scrollView: UIScrollView) {
        let index = self.scrollIndex
        self.scrollingCount--
        MyLog("SWView didEndScrolling \(index), \(scrollingTarget), c=\(scrollingCount)", level: 1)
        if self.scrollingCount > 0 {
            return

                if self.book.horizontal {
                    let extra = offset.x - CGFloat(target) * size.width - velocity.x * factor
                    if extra > size.width / 2.0 {
                        target += 1
                    } else if extra > 0 - size.width / 2 {
                        target -= 1
                    }
                } else {
                    let extra = offset.y - CGFloat(target) * size.height - velocity.y * factor
                    //MyLog("SwiftVC handlePan: \(Int(offset.y - CGFloat(target) * size.height)) - \(Int(velocity.y)) * \(factor) = \(Int(extra))")
                    if extra > size.height / 2 {
                        target += 1
                    } else if extra < 0 - size.height / 2 {
                        target -= 1
                    }
                }
            }
