hdcMem = CreateCompatibleDC(winDC); //Create the DC that will hold the off-screenhOld = SelectObject(hdcMem, hbmMem); //Set the paintable bitmap to the off-screenDC
//Draw to the off-
包装器指示极端垂直瞄准位置(目标超出范围/“屏幕外”),如下所示我试着检测到如此快速的上下移动2) If yes, havea look if the aim is within the screen again
3) Detect if aim is off-screen again and if all this happened
var areaHidden = $(window).scrollTop() - elementTop, // How much of the element is off-screenopacity = 1; // Sometimes the opacity remains at 0.9XXX, so we turn it to 1 when element is in-view or off-screen